WesseldR
2013-Jun-30 23:33 UTC
[Puppet Users] puppetlabs-apache please help me to understand ssl_key & allow-ovverride
Thank you for giving my question a look, I''m starting up working with puppet and so far its great, however the apache module is driving me crazy :-/ The manual on the website https://github.com/puppetlabs/puppetlabs-apache gives tons of options, only a view work for me. I have installed the 0.6.0 I''ve installed it on debian 7.1: *wget -q http://apt.puppetlabs.com/puppetlabs-release-wheezy.deb* *dpkg -i puppetlabs-release-wheezy.deb >/dev/null* *apt-get update >/dev/null * *apt-get install -y puppet-common >/dev/null * *puppet module install puppetlabs/apache* I''m trying to setup an webserver with "AllowOverride All" I created a file called ini.pp and run: *puppet apply init.pp* To apply it. # init.pp group { "puppet": ensure => "present", } apache::vhost { ''www.test.local'': port => ''80'', docroot => ''/vagrant/web/'', directory => [ { path => ''/vagrant/web/'', allow_override => [''All''] }], *#Error: Invalid parameter directory* docroot_group => ''vagrant'', docroot_owner => ''vagrant'', } How to correctly set this "allowed_override ? puppet seems to not recognise the directory keyword. But installed is the latest version 0.6.0 of puppetlabs/apache? In another attempt i tried to get SSL working and some keywords that are described in the manual i some how misuse.. apache::vhost { ''default-ssl'': port => 443, ssl => true, ssl_key => ''/etc/ssl/private/ssl-cert-snakeoil.key'', *#Error: Invalid parameter ssl_key* ssl_cert => ''/etc/ssl/certs/ssl-cert-snakeoil.pem'', *#Error: Invalid parameter ssl_cert* docroot => ''/vagrant/web/'', } Hope some one can help me out how to correctly use these to get my webserver configured with puppet. Many thanks in advance, Wessel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Hunter Haugen
2013-Jul-01 16:51 UTC
Re: [Puppet Users] puppetlabs-apache please help me to understand ssl_key & allow-ovverride
Hello! Sorry for the confusion. It appears that the parameters you''re referencing are from the master branch of the github repo, but are installing the older version from the forge (which has far less attention). The documentation on https://github.com/puppetlabs/puppetlabs-apache is only in reference to the master branch, so you will have to either clone from there using `git clone` or reference the documentation on the forge ( http://forge.puppetlabs.com/puppetlabs/apache) for the forge version. We plan to push a puppetlabs-apache release to the forge next week so that the version on the forge and the version on github will line up more closely. One final note; remember to `include apache` before declaring any apache::vhost resources so that the module can set everything up for them :). -Hunter On Sun, Jun 30, 2013 at 4:33 PM, WesseldR <j.w.deroode@gmail.com> wrote:> Thank you for giving my question a look, > I''m starting up working with puppet and so far its great, however the > apache module is driving me crazy :-/ > The manual on the website https://github.com/puppetlabs/puppetlabs-apachegives tons of options, only a view work for me. > I have installed the 0.6.0 > > I''ve installed it on debian 7.1: > > *wget -q http://apt.puppetlabs.com/puppetlabs-release-wheezy.deb* > *dpkg -i puppetlabs-release-wheezy.deb >/dev/null* > *apt-get update >/dev/null > * > *apt-get install -y puppet-common >/dev/null > * > *puppet module install puppetlabs/apache* > > I''m trying to setup an webserver with "AllowOverride All" > > I created a file called ini.pp and run: > *puppet apply init.pp* > To apply it. > > # init.pp > group { "puppet": > ensure => "present", > } > > apache::vhost { ''www.test.local'': > port => ''80'', > docroot => ''/vagrant/web/'', > directory => [ { path => ''/vagrant/web/'', allow_override => [''All''] }], > *#Error: Invalid parameter directory* > docroot_group => ''vagrant'', > docroot_owner => ''vagrant'', > } > > How to correctly set this "allowed_override ? puppet seems to not > recognise the directory keyword. But installed is the latest version 0.6.0 > of puppetlabs/apache? > > In another attempt i tried to get SSL working and some keywords that are > described in the manual i some how misuse.. > > apache::vhost { ''default-ssl'': > port => 443, > ssl => true, > ssl_key => ''/etc/ssl/private/ssl-cert-snakeoil.key'', *#Error: > Invalid parameter ssl_key* > ssl_cert => ''/etc/ssl/certs/ssl-cert-snakeoil.pem'', *#Error: > Invalid parameter ssl_cert* > docroot => ''/vagrant/web/'', > } > > Hope some one can help me out how to correctly use these to get my > webserver configured with puppet. > > Many thanks in advance, > > Wessel > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.