Hi,
I would like to install Apache silently on Windows servers using Puppet.
Here's my class:
class base_apache {
case $operatingsystem {
windows: {
file { 'apache_installer_package':
path =>
'D:/Downloads/Puppet/',
ensure => directory,
source =>
'puppet:///files/Apache-Installers/',
recurse => true,
purge => false,
source_permissions => ignore,
replace => no,
before => Package['apache
2.2.25']
}
package { 'apache 2.2.25':
ensure => installed,
source =>
'D:\\Downloads\\Puppet\\httpd-2.2.25-win32-x86-openssl-0.9.8y.msi',
install_options => {'INSTALLDIR'
=>
'D:\Apache2.2'},
}
}
}
}
It works, in that it installs it. However, it doesn't create Apache service
and it doesn't seem to know if Apache is already installed as it seems to
"create" it on every agent run:
C:\>puppet agent -t
Info: Retrieving plugin
Info: Caching catalog for localhost
Info: Applying configuration version '1390499627'
Notice: /Stage[main]/Base_apache/Package[apache 2.2.25]/ensure: created
Notice: Finished catalog run in 6.17 seconds
Any ideas?
Thanks
Alex
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/65b79434-4cb8-4656-9a64-b80960af333a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.