I realize that maybe these modules have been built to be used only with foreman. Is that a decent assumption? And if so, is there a simple apache module somewhere? I only want to do the basics, check packages, service, and create vhosts. I may be better writing my own...
I realize that maybe these modules have been built to be used only with foreman. Is that a decent assumption? And if so, is there a simple apache module somewhere? I only want to do the basics, check packages, service, and create vhosts. I may be better writing my own...
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/bLajZTaZ-McJ.--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Fri, Dec 7, 2012 at 9:37 PM, Ugo Bellavance <ug...@lubik.ca> wrote:
I realize that maybe these modules have been built to be used only with foreman. Is that a decent assumption? And if so, is there a simple apache module somewhere? I only want to do the basics, check packages, service, and create vhosts. I may be better writing my own...Ideally we would like to share & reuse the modules as much as possible, they are not aimed to work just for the installer ( a lot of people use them for a lot of different usage cases).specifically, you tried to override a class that has no param class attached to it.
saying that, we are going a process of parameteriziing all of our classes, so if you would like to send a patch / pull request we would gladly accept.
This class does not accept any parameters, thus why it is failing. You could easily modify it though to do so:
class apache::service ( $enable = "true",){...snip...
service { $http_service:ensure => running,
enable => $enable,
hasstatus => true,hasrestart => true,alias => 'httpd',subscribe => Package['httpd']}
...snip...Then call it like this on the node:
node 'server1' {class { "apache::service": enable => "false" }}
Side note, when there is only one parameter, the best practice is to put it all on one line.