similar to: Conditionals allowed within types?

Displaying 20 results from an estimated 1000 matches similar to: "Conditionals allowed within types?"

2010 Jun 17
5
Could not find class, code-blind
I''m troubled with a node-definition not able to resolve a class: Could not find class rhnsd::common at /etc/puppet/manifests/nodes.pp: 8 on node X Content of manifest/site.pp: import "nodes.pp" [...] The layout of modules/rhnsd/ is: |-- files | `-- up2date-rhn |-- manifests | |-- client.pp | |-- common.pp | |-- init.pp | `-- rhn.pp A `cat'' from each
2010 May 21
3
SSH service not getting restarted
Hi, I have this in my sshdconfig module''s init.pp but the service is not getting restarted even though at first connect the file sshd_config is getting modified with the Banner entry. Can someone please help? class sshdconfig { file { "/etc/ssh/sshd_config": path => "/etc/ssh/sshd_config", owner => root,
2013 Oct 24
2
SSH Module with multiple conditions
I''ve written and deployed a simple Linux SSH module. But I need to modify to include support for FreeBSD and AIX. On top of that, I need to include some conditionals in there that (for example) if (/etc/file1 contains string abc) ; then install sshd-config-x & ssh-config-x elsif (/etc/file1 contains string xyz); then install sshd_config-y & ssh_config-y else install
2013 Nov 16
4
frustrating dependency problem
I''m having a difficult time with a dependency issue. Basically, I want to be able to call a defined type, but it''s not working out so far. I have my manifests setup like this: init.pp: class foo { .... } bar.pp: class foo::bar { include foo package{ "test": ensure => running, notify =>
2009 Nov 04
2
Using before=> in a definition...
I hope I haven''t dug myself into a corner here... How can I make sure that /some/file.xml is created BEFORE the jboss-tfel0 service is started? I can''t use before => in the file{} in the jboss class because it doesn''t exist there. define create_jboss_inst($inst, $version, $naming_port) { .... service { "jboss-$inst": require
2011 Nov 02
2
Class Including.
Ok, what am I doing wrong here? I''m including splunkforwarder::app_server and it''s all working except that it appears that splunkforwarder::common isn''t including splunkforwarder::enabled... class splunkforwarder::enabled { service { ''splunkforwarder'': ensure => running, enable => true,
2011 Jul 13
4
puppet manifest execution orders
I created manifest for our webserver. manifest included git clone, database creation and restore database etc.... How to order the installation and exec exactly Roni -- 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
2009 Jul 10
3
Tracking down ensure => running problem
I''m trying to figure out how "ensure => running" determines whether a service is running or not (CentOS using init controlled services). I have a custom service that has enable => running set on it: service { "foo": ensure => running, enable => true } Every time puppet runs I see this: notice: //Service[foo]/ensure: ensure changed
2011 Mar 15
5
apache service start problem
hello list!! I have developed a custom apache module for my company that setups up our own particular config of httpd and php in order to run our sites.. However, there is one wrinkle. It take two puppet runs to start the httpd service with this module and we''d like to get that down to one run! The reason seems to be that we have our own custom ssl vhost conf that we use called
2010 Mar 02
2
Nagios based on David Schmitt's Complete Config : variables are empty
Hello ! I''m trying to implement a Nagios solution based on David Schmitt''s Complete Config. But I the following error when running puppetd -t - v : notice: Starting catalog run err: //Node[monitoring]/nagios::target/Nagios::Host[]/File[/conf.d/ _host.cfg]/ensure: change from absent to present failed: Could not set present on ensure: No such file or directory - /conf.d/
2013 Jan 19
3
Does a service resource autorequire its package resource?
I''ve seen a couple of instances where a service resource has failed with an error because it''s been evaluated before its corresponding package is installed. I can fix this by adding an explicit require to the service resource, or by just running puppet again, but I thought that there would be an implicit or automatic require from a service object to the associate service
2009 Sep 08
1
variables on files
I have this configuration: class monit { # Installing packages. package { "monit": ensure => latest; } file { "/etc/default/monit": owner => "root", group => "root", mode => "0644", source => "puppet:///monit/etc/default/monit", } file { "/etc/monit/monitrc": owner => "root", group =>
2011 Dec 20
8
Network config module won't work. -Mac address errors
Hello, I created a module for modifying the base network settings on a machine. However no matter what changes I make it keeps giving me the error "has different MAC address than expected, ignoring" when the network tries to startup. I am testing this out on the puppet learning VM. Does anyone see anything wrong with my code: init.pp -------------------------- define basehost
2008 Sep 21
3
Monit; BackgroundRB; environment variables
I started emailing monit mailing list because I started getting this problem where I couldn''t start backgroundrb with monit anymore, thinking it was a monit problem. However, I back tracked a bit since I had added code to my project, and monit was able to start backgroundrb again. I seem to have zeroed in on the problem. I''m not sure where the problem lies - maybe monit or
2007 Aug 26
1
monit not executing start/stop/restart mongrels
Alright, I have googles and read through the docs on monit I get this error when adding -v starting monit monit: Cannot connect to the monit daemon. Did you start it with http support? monit: Cannot connect to the monit daemon. Did you start it with http support? Am I missing something here? set daemon 120 set logfile syslog facility log_daemon set mailserver localhost set httpd port 28212
2010 Jun 11
2
Service monitoring/"Monit"?
Has anybody here tried the "Monit" utility (http://mmonit.com/monit/)? I need to set up some kind of "watchdog" functionality for a custom service otherwise started via init (i.e. via a script in /etc/init.d + rc*.d links managed by chkconfig) and it seems like this system may give me nearly what I want. However, something that concerns me about it, is that it appears to
2011 Mar 19
2
httpd cannot serve web page on port 2812 (for Monit)
Might there be anything CentOS related on why I cannot access the Monit GUI system on http://box-running-monit.com:2812 ? I am using a very basic /etc/monit.conf config, but I cannot get it serve the web page on my box The service start and stops fine (e.g. "/etc/init.d/monit start"), and I have it set to listen to port 2812 in the "/etc/monit.conf file" (so far, kept the
2008 Jan 09
9
mongrel, monit, and the many, many messages
Monit 4.9, Mongrel 1.0.1, Rails 1.2.6, Mac OS X 10.4.11 (PPC) I don''t know whether this is a mongrel issue or a monit issue. I''m trying to poke my way around a system set up by someone else. I have no more experience w/ mongrel that local Rails dev at this point, and a conceptual understanding of how monit is working. I have the Deploying Rails beta book, and I''m
2012 Feb 12
1
Using templates
Hi everyone, I''m learning Puppet and I want to configure ssh server with different port on different nodes. Puppet v2.7.1 I have created module ssh: content of modules/ssh/manifests/install.pp class ssh::install { package { "ssh": ensure => present, } } content of modules/ssh/manifests/service.pp class ssh::service { service { "ssh": ensure =>
2006 Oct 13
10
Services on Gentoo Client Systems
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You folks were so helpful with my last problem I thought I''d try again. I''m attempting to use the services filetype to ensure that ntpd is running on all my hosts. Unfortunately this does not seem to be working on my Gentoo test system. I get the following output on the client log: puppetd[3436]: Starting configuration run