hi,
i like to configure apache vhost on centos 6.here the apache daemon is 
httpd.

[root@v manifests]# more site.pp
import '/etc/puppet/manifests/httpd.pp'
import '/etc/puppet/manifests/vhost.pp'
node 'y' {
include httpd
include y
}

[root@v manifests]# more vhost.pp
class y {
httpd::vhost {'testy.com':
port => '80',
docroot => '/var/www/vhost'
}
}

[root@v manifests]# more httpd.pp
class httpd {
package { httpd:

ensure => installed
}
file {
'/etc/httpd/conf/httpd.conf':
ensure => 'present',
source => 'puppet:///extra_files/httpd.conf'
}
file {
'/v':
ensure => 'directory'
}
service { httpd:
ensure => true,
enable => true,
subscribe => [File["/etc/httpd/conf/httpd.conf"],Package [httpd]]
}
}

on node y where is the agent with puppet agent -t is installed httpd but no 
vhost created.nothing in /etc/httpd/conf/httpd.conf.
tnx

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/844b6207-403d-40e6-88d7-1fb330edf4c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to