Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server_name and server_alias issue #44

Open
getchudez opened this issue Aug 20, 2014 · 1 comment
Open

server_name and server_alias issue #44

getchudez opened this issue Aug 20, 2014 · 1 comment

Comments

@getchudez
Copy link

Hello, I've been trying to do a fully installation of wordpress using this cookbook but after the installation the apache configuration has not the correct server name or alias

  • template[/var/www/wordpress/wp-config.php] action create (up to date)
  • template[/etc/httpd/sites-available/wordpress.conf] action create
    • create new file /etc/httpd/sites-available/wordpress.conf
    • update content in file /etc/httpd/sites-available/wordpress.conf from none to e86471
      --- /etc/httpd/sites-available/wordpress.conf 2014-08-19 23:16:00.626466260 -0300
      +++ /tmp/chef-rendered-template20140819-11478-1byllfm 2014-08-19 23:16:00.627466260 -0300
      @@ -1 +1,26 @@
      +<VirtualHost *:80>
    • ServerName
    • ServerAlias
    • DocumentRoot /var/www/wordpress
    • <Directory /var/www/wordpress>
    • Options FollowSymLinks
    • AllowOverride FileInfo Options
    • Order allow,deny
    • Allow from all

I tried to configure the following variables at attributes/default.rb

default['wordpress']['server_aliases'] = [node['fqdn']]
default['wordpress']['server_name'] = node['fqdn']

changing values to other value like as centos-web or something like this but I hadn't lucky. The only way where I could assign a value was when I change values at templates.

Is something wrong on my steps or idea?

Thanks in advance
G.

@brint
Copy link
Owner

brint commented Aug 23, 2014

What you've done sounds right. The attributes listed are consumed in this section. What OS, OS version, and chef-client version are you using? That's very weird that it's not writing anything to the config for ServerName or ServerAlias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants