How's about: source => "puppet:///modules/apache/krome/httpd/conf.d/php.conf"
On Mar 11, 2011, at 6:55 PM, Tim Dunphy wrote: > sorry I accidentally mispsated one of the entries above.. there > actually is a closing brace on php.conf > > file { > "/etc/httpd/conf.d/php.conf": > owner => root, > group => root, > mode => 440, > require => Exec["create httpd conf dir"], > source => "puppet:///apache/files/krome/httpd/conf.d/php.conf" > } > > > thanks again > > On Fri, Mar 11, 2011 at 6:53 PM, Tim Dunphy <bluethu...@gmail.com> wrote: >> Hello Denmat! >> >> Thanks for responding ! That was a tremendous help! I was able to >> correct a couple of issues. I corrected the paths and all of the files >> are shared but one.. I would appreciate your insight here as well. >> >> ## puppet error >> >> err: //apache/File[/etc/httpd/conf.d/php.conf]: Failed to retrieve >> current state of resource: Could not retrieve information from >> source(s) puppet:///apache/files/krome/httpd/conf.d/php.conf at >> /etc/puppet/modules/apache/manifests/init.pp:67 >> >> >> >> This is init.pp starting at line 67: >> >> file { >> "/etc/httpd/conf.d/php.conf": >> owner => root, >> group => root, >> mode => 440, >> require => Exec["create httpd conf dir"], >> source => "puppet:///apache/files/krome/httpd/conf.d/php.conf" >> >> >> These are the ownerships and permissions leading to this file: >> >> >> [root@puppet modules]# ls -l /etc/puppet/modules/apache/ | grep files >> drwxr-xr-x 4 puppet puppet 4096 Mar 3 11:04 files >> >> [root@puppet modules]# ls -l /etc/puppet/modules/apache/files/ | grep krome >> drwxr-xr-x 3 puppet puppet 4096 Mar 3 10:37 krome >> >> [root@puppet modules]# ls -l /etc/puppet/modules/apache/files/krome/ | >> grep httpd >> drwxr-xr-x 4 puppet puppet 4096 Jan 25 15:32 httpd >> >> [root@puppet modules]# ls -l >> /etc/puppet/modules/apache/files/krome/httpd/ | grep conf >> drwxr-xr-x 2 puppet puppet 4096 Mar 11 17:21 conf >> drwxr-xr-x 2 puppet puppet 4096 Mar 11 17:20 conf.d >> >> [root@puppet modules]# ls -l >> /etc/puppet/modules/apache/files/krome/httpd/conf.d | grep php.conf >> -rw-r--r-- 1 puppet puppet 674 Jan 25 15:32 php.conf >> >> >> So this is a little bit mysterious. Thanks again to Denmat and anyone >> willing to help! >> >> >> >> >> On Wed, Mar 9, 2011 at 5:38 PM, Denmat <tu2bg...@gmail.com> wrote: >>> Hi, >>> Don't think you have set the title right. 'conf/conf.d' .. Should be just >>> conf.d yeah? >>> file { >>> "/etc/httpd/conf/conf.d/000-ssl.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/krome/httpd/conf.d/000-ssl.conf" >>> } >>> >>> >>> On 10/03/2011, at 4:36, Tim Dunphy <bluethu...@gmail.com> wrote: >>> >>> Hello list!! >>> >>> I am having an issue sharing some files from a location in my apache >>> modules location on the puppet server. It seems that some files are >>> being served from a custom file sharing mount point, yet anything >>> served from the apache module is not transferred to the client: >>> >>> >>> ## error while sharing files other files are correctly shared >>> >>> >>> info: Caching catalog for kromep1.ec2.internal >>> info: //centos/Tidy[/etc/yum.repos.d/CentOS-Media.repo]: File does not exist >>> info: //centos/Tidy[/etc/yum.repos.d/CentOS.repo]: File does not exist >>> info: Applying configuration version '1299701506' >>> notice: //basefiles/File[/etc/amanda/amanda-client.conf]/ensure: >>> content changed '{md5}29564c9913a730874d3dedeb31eabada' to >>> '{md5}29564c9913a730874d3dedeb31eabada' >>> >>> notice: //basefiles/File[/etc/hosts]/checksum: checksum changed >>> '{md5}9241a4b1b4d59b8d5412a3d55bfc0ede' to >>> '{md5}197f375e967ddf505edf4ac6bc09c435' >>> >>> notice: //basefiles/File[/etc/nsswitch.conf]/ensure: content changed >>> '{md5}1a7b23a8dde067e7e563131d3d7ebd6f' to >>> '{md5}1a7b23a8dde067e7e563131d3d7ebd6f' >>> >>> notice: //basefiles/File[/etc/ldap.conf]/ensure: content changed >>> '{md5}7b97010628c1989ed914eff10a81b099' to >>> '{md5}7b97010628c1989ed914eff10a81b099' >>> >>> err: //apache/File[/etc/httpd/conf/conf.d/proxy_ajp.conf]/ensure: >>> change from absent to file failed: Could not set file on ensure: No >>> such file or directory - >>> /etc/httpd/conf/conf.d/proxy_ajp.conf.puppettmp_4126 at >>> /etc/puppet/modules/apache/manifests/init.pp:69 >>> >>> err: //apache/File[/etc/httpd/conf/conf.d/php.conf]: Failed to >>> retrieve current state of resource: Could not retrieve information >>> from source(s) puppet:///apache/files/krome/httpd/conf.d/php.conf at >>> /etc/puppet/modules/apache/manifests/init.pp:60 >>> >>> err: //apache/File[/etc/httpd/conf/conf.d/001-chrome-ssl.conf]/ensure: >>> change from absent to file failed: Could not set file on ensure: No >>> such file or directory - >>> /etc/httpd/conf/conf.d/001-chrome-ssl.conf.puppettmp_6905 at >>> /etc/puppet/modules/apache/manifests/init.pp:42 >>> >>> err: //apache/File[/etc/httpd/conf/conf.d/002-chrome.conf]/ensure: >>> change from absent to file failed: Could not set file on ensure: No >>> such file or directory - >>> /etc/httpd/conf/conf.d/002-chrome.conf.puppettmp_2458 at >>> /etc/puppet/modules/apache/manifests/init.pp:51 >>> >>> err: //apache/File[/etc/httpd/conf/conf.d/welcome.conf]/ensure: change >>> from absent to file failed: Could not set file on ensure: No such file >>> or directory - /etc/httpd/conf/conf.d/welcome.conf.puppettmp_3194 at >>> /etc/puppet/modules/apache/manifests/init.pp:79 >>> >>> err: //apache/File[/etc/httpd/conf/conf.d/000-ssl.conf]/ensure: change >>> from absent to file failed: Could not set file on ensure: No such file >>> or directory - /etc/httpd/conf/conf.d/000-ssl.conf.puppettmp_7996 at >>> /etc/puppet/modules/apache/manifests/init.pp:33 >>> >>> notice: //centos/Cron[runPuppet]/hour: defined 'hour' as '*' >>> notice: //centos/Cron[runPuppet]/weekday: defined 'weekday' as '*' >>> notice: //centos/Exec[/bin/rpm --import >>> /etc/pki/rpm-gpg/RPM-GPG-KEY.dag.txt]/returns: executed successfully >>> notice: Finished catalog run in 1.72 seconds >>> >>> >>> >>> ## ls -l of files trying to be shared >>> >>> >>> [root@puppet ~]# ls -l >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/proxy_ajp.conf >>> -rw-r--r-- 1 1000 1000 566 Feb 4 12:26 >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/proxy_ajp.conf >>> >>> [root@puppet ~]# ls -l >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/php.conf >>> -rw-r--r-- 1 1000 1000 674 Feb 4 12:26 >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/php.conf >>> >>> >>> >>> [root@puppet ~]# ls -l >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/001-chrome-ssl.conf >>> -rw-r--r-- 1 1000 1000 1028 Feb 4 12:26 >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/001-chrome-ssl.conf >>> >>> [root@puppet ~]# ls -l >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/002-chrome.conf >>> -rw-r--r-- 1 1000 1000 572 Feb 4 12:26 >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/002-chrome.conf >>> >>> [root@puppet ~]# ls -l >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/welcome.conf >>> -rw-r--r-- 1 1000 1000 299 Feb 4 12:26 >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/welcome.conf >>> >>> >>> [root@puppet ~]# ls -l >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/000-ssl.conf >>> -rw-r--r-- 1 1000 1000 369 Feb 4 12:26 >>> /etc/puppet/modules/apache/files/krome/httpd/conf.d/000-ssl.conf >>> >>> >>> >>> ## apache class that shares the files lives in >>> /etc/puppet/modules/apache/manifests/init.pp >>> >>> >>> class apache { >>> >>> $packagelist = ["httpd","webalizer","mod_ssl"] >>> >>> package { $packagelist: >>> ensure => "installed" >>> } >>> >>> >>> exec { "create httpd conf dir": >>> command => "/bin/mkdir -p /etc/httpd/conf.d", >>> creates => "/etc/httpd/conf.d" >>> >>> } >>> >>> >>> file { >>> "/etc/httpd/conf/httpd.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/httpd.conf" >>> } >>> >>> file { >>> "/etc/httpd/conf/conf.d/000-ssl.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/krome/httpd/conf.d/000-ssl.conf" >>> } >>> >>> file { >>> "/etc/httpd/conf/conf.d/001-chrome-ssl.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/krome/httpd/conf.d/001-chrome-ssl.conf" >>> } >>> >>> file { >>> "/etc/httpd/conf/conf.d/002-chrome.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/krome/httpd/conf.d/002-chrome.conf" >>> } >>> >>> file { >>> "/etc/httpd/conf/conf.d/php.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/files/krome/httpd/conf.d/php.conf" >>> } >>> >>> file { >>> "/etc/httpd/conf/conf.d/proxy_ajp.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/krome/httpd/conf.d/proxy_ajp.conf" >>> } >>> >>> >>> file { >>> "/etc/httpd/conf/conf.d/welcome.conf": >>> owner => root, >>> group => root, >>> mode => 440, >>> require => Exec["create httpd conf dir"], >>> source => "puppet:///apache/krome/httpd/conf.d/welcome.conf" >>> } >>> >>> >>> >>> service { "httpd": >>> enable => "true", >>> ensure => "running", >>> hasrestart => "true", >>> hasstatus => "true", >>> require => Package["httpd"] >>> } >>> >>> } >>> >>> ## this is the node that includes the apache class which also tests >>> out the modules ability to create vhosts on the fly >>> >>> node 'kromep1.ec2.internal' inherits webserver { >>> include apache >>> apache::virtual_host { "ext-kromep1.ops.example.com": >>> ip => "50.xx.xxx.255" >>> } >>> apache::virtual_host { "web1.ops.example.com": >>> ip => "50.xx.xxx.255" >>> } >>> apache::virtual_host {"web2.ops.example.com": >>> ip => "50.xx.xxx.255" >>> } >>> >>> >>> >>> >>> I would genuinely appreciate any input into this issue that you might >>> have to share! >>> >>> Thanks! >>> Tim >>> >>> >>> -- >>> GPG me!! >>> >>> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Puppet Users" group. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> puppet-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Puppet Users" group. >>> To post to this group, send email to puppet-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> puppet-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >> >> >> >> -- >> GPG me!! >> >> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B >> > > > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.