[Puppet Users] Re: Debugging Puppet catalog compilation issues

2015-03-25 Thread Frederic Conrotte
Thanks for your answer Nick, I will surely try this when 3.7.5 is out

Le mardi 24 mars 2015 13:10:25 UTC+1, Frederic Conrotte a écrit :

 Hello

 I'm using Puppet Master 3.7 thru Apache/Passenger and I am facing this 
 compilation issue: 


  [1;31mError: Could not retrieve catalog from remote server: Error 400 on 
 SERVER: assert_type(): Expected type String[1, default] does not match 
 actual: Float on node (...)[0m

 I have been looking in Puppet Master logs to find the root cause but found 
 nothing useful so far.

 Can you explain why catalog compilation failures do not give either the class 
 name or the .pp file where the issue occurs ?

 It would make developers life much easier.



-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/69503301-c7b9-4603-a1cb-d1ed7b0eb859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet Example42/Nagios Module

2015-03-25 Thread Sergiu Cornea
Good morning everyone,

I am using Puppet 3.7 and the example42/nagios module. As I am a Puppet 
newbie I have tried to create hosts using hiera but it doesn't work. I have 
google it but I am just getting the example42/network module example for 
hiera.

Could someone guide me into the right direction on how I will go about 
create a Hiera entry for this module?

Thank you,

Regards,
Sergiu

-- 


This message and its attachments are private and confidential. If you have 
received this message in error, please notify the sender and remove it and 
its attachments from your system.

The University of Westminster is a charity and a company 
limited by guarantee. Registration number: 977818 England. 
Registered Office: 309 Regent Street, London W1B 2UW.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c52802aa-1923-450c-bc95-053bee95712a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Use of hash in a conditional assignment doesn't work

2015-03-25 Thread jcbollinger


On Tuesday, March 24, 2015 at 10:22:16 AM UTC-5, Tom Limoncelli wrote:

 I'd like to assign $v one hash if $y == 'foo' and a different hash if 
 $y == 'bar'.  However it seems like conditional assignments aren't 
 permitted. 

 $ puppet --version 
 3.7.3 

 $ cat -n hash-condeq.pp 
  1 $y = 'foo' 
  2 
  3 $v = $y ? { 
  4  'foo' = { 'x' = 'xfoo', 'y' = 'yfoo', }, 
  5  'bar' = { 'x' = 'xbar', 'y' = 'ybar', } 
  6 } 
  7 
  8 notice($v) 
  9 notice($v['y']) 
 $ puppet apply hash-condeq.pp 
 Error: Could not parse for environment production: Syntax error at 
 '{'; expected '}' at /tmp/hash-condeq.pp:4 on node 
 ny-tlim01.ds.stackexchange.com 
 Error: Could not parse for environment production: Syntax error at 
 '{'; expected '}' at /tmp/hash-condeq.pp:4 on node 
 ny-tlim01.ds.stackexchange.com 



This is a documented 
https://docs.puppetlabs.com/puppet/3/reference/lang_conditional.html#values 
limitation of selector syntax.  The allowed value elements include, among 
other things, [a]ny literal value, *with the exception of hash literals* 
(emphasis added).


John

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d77af2bf-d814-41cf-925b-4d81a15fd066%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] team need some guidelinees ,like how to do software install and uninstal on windows using Active directory OU on windows

2015-03-25 Thread shyam sundar Keshari
Hi Team ,

I am using puppet with latest verion 3.7 .

Some new requirement come up like do software  installation and 
un-installation on Windows operating system and hostname for this machine I 
need to 

get from Active directory OU list and then apply puppet policy accordingly .

So if any1 has done such project then kindly share with your knowledge .


Thanks in Advance 

Shyam Keshri

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ae327142-3dbe-4bde-816d-aebfbadeb407%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] rspec Error

2015-03-25 Thread Afroz Hussain
Hi All,

I am currently using 3.7.4 version of puppet and tried setting up 
rspec(http://rspec-puppet.com/ )  to run some test cases. I have installed 
ruby 2.2.0 with the help of rvm but still getting below errors:

# cd /etc/puppet/modules/apache/
# rspec spec/classes/apache_spec.rb
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:512:in 
`all_hooks_for': return from proc-closure (LocalJumpError)
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:564:in 
`process'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/flat_map.rb:11:in 
`map'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/flat_map.rb:11:in 
`flat_map'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:563:in 
`process'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:429:in 
`register_globals'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:394:in
 
`set_it_up'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:361:in
 
`subclass'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:253:in
 
`describe'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:43:in 
`__send__'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:43:in 
`describe'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:82:in 
`__send__'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:82:in 
`describe'
from /etc/puppet/modules/apache/spec/classes/apache_spec.rb:3
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in
 
`load'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in
 
`load_spec_files'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in
 
`each'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in
 
`load_spec_files'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:97:in 
`setup'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:85:in 
`run'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:70:in 
`run'
from 
/usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:38:in 
`invoke'
from /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/exe/rspec:4
from /usr/bin/rspec:19:in `load'
  
Any help will be appreciated!!!

Thanks,
Afroz Hussain

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1c47e572-b756-45fe-95e9-bf251d5bfeef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] rspec Error

2015-03-25 Thread Garrett Honeycutt
On 3/25/15 2:35 PM, Afroz Hussain wrote:
 Hi All,
 
 I am currently using 3.7.4 version of puppet and tried setting up
 rspec(http://rspec-puppet.com/ )  to run some test cases. I have
 installed ruby 2.2.0 with the help of rvm but still getting below errors:
 
 # cd /etc/puppet/modules/apache/
 # rspec spec/classes/apache_spec.rb
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:512:in
 `all_hooks_for': return from proc-closure (LocalJumpError)
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:564:in
 `process'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/flat_map.rb:11:in
 `map'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/flat_map.rb:11:in
 `flat_map'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:563:in
 `process'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/hooks.rb:429:in
 `register_globals'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:394:in
 `set_it_up'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:361:in
 `subclass'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/example_group.rb:253:in
 `describe'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:43:in
 `__send__'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:43:in
 `describe'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:82:in
 `__send__'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/dsl.rb:82:in
 `describe'
 from /etc/puppet/modules/apache/spec/classes/apache_spec.rb:3
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in
 `load'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1226:in
 `load_spec_files'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in
 `each'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/configuration.rb:1224:in
 `load_spec_files'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:97:in
 `setup'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:85:in
 `run'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:70:in
 `run'
 from
 /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/lib/rspec/core/runner.rb:38:in
 `invoke'
 from /usr/lib/ruby/gems/1.8/gems/rspec-core-3.2.2/exe/rspec:4
 from /usr/bin/rspec:19:in `load'
  
 Any help will be appreciated!!!
 
 Thanks,
 Afroz Hussain
 
 -- 
 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+unsubscr...@googlegroups.com
 mailto:puppet-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/1c47e572-b756-45fe-95e9-bf251d5bfeef%40googlegroups.com
 https://groups.google.com/d/msgid/puppet-users/1c47e572-b756-45fe-95e9-bf251d5bfeef%40googlegroups.com?utm_medium=emailutm_source=footer.
 For more options, visit https://groups.google.com/d/optout.

Hi Afroz,

Looks like you are not using ruby v2.2.0 as rspec is looking in
'/usr/lib/ruby/gems/1.8'. Be sure to run `rvm use 2.2.0` before running
rspec and familiarize yourself with bundler.

Also ruby v2.2.0 is not supported by v3.7, so you might want to run
rspec with v2.1.0.

Best regards,
-g

-- 
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5512D32B.7070802%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] r10k best practices in production environment

2015-03-25 Thread Vijayabalan Balakrishnan
Dear Team,

I am doing POC project in r10k for automating the puppet environment to 
manage modules.Is there any place where we can study the best practices for 
r10k tool.So that we can plan well fr our production environment.

Kindly help me on this...

Thanks,
BVIJAY

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/86bc87d9-7c2e-4596-b7ce-2e6e24e8679a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Provider/type with no name

2015-03-25 Thread Felix Frank
Hi,

what you're doing is more or less identical to composite namevars. The
codebase has support for *actual* composites, but last I heard, it's a
very fragile construct. I cannot advise to try and use it. Your own
approach may well be more sane.

On 03/24/2015 02:40 PM, Nick Howes wrote:
 Where it falls over is when I try to use the `resources` type to purge
 unmanaged chains and rules. Unless the resource is declared with the
 exact name that would have been pregenerated, it gets confused and
 will create and destroy the resource alternately on each run.

So one run removes a resource named X-Y-Z and the next run creates one
with that same name? Huh.

 Is this because I'm committing a terrible abuse of resource names, or
 down to the nature of the `resources` type (which I understand is
 itself a bit of a hack)?

Ahhh, well...the resources type is an oddball and somewhat limited. It's
not so much of a hack that your scenario wouldn't work.

Pretty strange. Can you try and make sure that the resources that are
being purged are really not part of the catalog? (Examine client-yaml in
$vardir on the agent.)

Any chance that the magic you use to generate resource names is subtly
non-deterministic?

Cheers,
Felix

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55134D4D.5040503%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Trouble with service resource detecting systemd as provider on FC19

2015-03-25 Thread Felix Frank
Hi,

it sure is disappointing that the most recent agent version will not
select the correct default provider on your FC19. Is systemd default on
this platform? Or have you configured this box this way explicitly.

If you want your manifest to behave like this on your FC19 boxen only,
you can do this on the global scope (e.g., site.pp)

if $operatingsystem == 'Fedora' and $operatingsystemmajrelease == '19' {
Service { provider = 'systemd' }
}

This sets a resource default if the node in question uses the specified
operating system.

HTH,
Felix

On 03/13/2015 03:05 PM, James Olin Oden wrote:
 I am on Fedora Core 19 using Puppet version 3.7.4.

 When I was trying ensure a service was configured to start I would do
 something like:

service { 'someservice':
ensure = 'running',
enable = true,
}

 But when I would run puppet apply I would get the following error:

Error: Could not enable someservice: Execution of '/sbin/chkconfig
 --add someservice'
returned 1: error reading information on service someservice: No such file 
 or
 directory
Error: /Stage[main]/Firewall::Linux::Redhat/Service[someservice]/ensure:
 change
 from stopped to running failed: Could not enable someservice: Execution of
 '/sbin/chkconfig --add someservice' returned 1: error reading information on
 service someservice: No such file or directory

 However if I told it the provider like:


service { 'someservice':
ensure = 'running',
enable = true,
provider = 'systemd',
}

 The puppet apply would work fine.   This however makes my resource non
 portable to systems not using systemd.   Is this a bug of some sort?
 Am I doing something wrong?

 Thanks...James


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55135030.5070104%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Announce: Hiera 2.0.0 available

2015-03-25 Thread Kylo Ginsberg
Hiera 2.0.0 is a new major version that includes several new features that
expand Hiera's abilities. It also includes one breaking change so please
read the release notes linked below.

New features include the ability to pass options to the deep merge gem, new
sub-keys to allow lookups to index into data structures, and an `alias()`
function to make a key an alias for another key. It also includes a fix for
interpolation recursion loops and several other bugs.

Release notes are available here:
http://docs.puppetlabs.com/hiera/latest/release_notes.html

To see a complete list of issues fixed in this release:
https://tickets.puppetlabs.com/issues/?filter=13825

We're tracking bugs people find in this release with the Affected Version
field set to HI 2.0.0: https://tickets.puppetlabs.com/issues/?filter=13824

-- 
Kylo Ginsberg | k...@puppetlabs.com | irc: kylo | twitter: @kylog

*PuppetConf 2015 http://2015.puppetconf.com/ is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Early Adopter discount
https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter
*
*—**save $349!*

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALsUZFGpG2RL0tSSqqduZPdVuDXnY3ZbQ%3De6T1W%2BCfoj6AVBCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppetlabs-mysql with Percona

2015-03-25 Thread Elisiano Petrini
Hi Matt,
you might need to override also ::mysql::server::service_name. I don't 
know what's the service name of percona but it looks like that is not 
'mysqld':

 Error: Could not start Service[mysqld]: Execution of '/sbin/service 
mysqld start' returned 1: mysqld: unrecognized service

Best Regards,
Elisiano Petrini

On Tuesday, March 24, 2015 at 8:27:37 AM UTC-4, Matt Shields wrote:

 Does anyone have an example of provisioning Percona MySQL using the 
 puppetlabs-mysql module?

 Here's my puppet code:

  15   package { 'percona-release':
  16 ensure   = present,
  17 source   = '
 http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
 ',
  18 provider = rpm,
  19   }
  20 
  21   $override_options = {
  22 'mysqld'= {
  23   'bind-address'= '0.0.0.0',
  24   'max_connections' = '1024',
  25 }
  26   }
  27 
  28   class { '::mysql::server':
  29 package_name= 'Percona-Server-server-56',
  30 root_password   = ${percona_root},
  31 remove_default_accounts = true,
  32 override_options= $override_options,
  33 require = [ Package['percona-release'] ],
  34}

 And here's the output I'm getting.

 [root@testing-bidb001 ~]# puppet agent -t   
 Info: Retrieving pluginfacts
 Info: Retrieving plugin
 Info: Loading facts
 Info: Caching catalog for testing-bidb001
 Info: Applying configuration version '1427198241'
 Notice: /Stage[main]/Profile::Bidb/Package[percona-release]/ensure: created
 Notice: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: 
 created
 Notice: /Stage[main]/Mysql::Server::Config/File[/etc/mysql]/ensure: created
 Notice: /Stage[main]/Mysql::Server::Config/File[/etc/my.cnf]/ensure: 
 defined content as '{md5}8ef60204b1f3c4d7ffd673f9debc5df1'
 Notice: /Stage[main]/Mysql::Server::Config/File[/etc/mysql/conf.d]/ensure: 
 created
 Error: Could not start Service[mysqld]: Execution of '/sbin/service mysqld 
 start' returned 1: mysqld: unrecognized service
 Wrapped exception:
 Execution of '/sbin/service mysqld start' returned 1: mysqld: unrecognized 
 service
 Error: /Stage[main]/Mysql::Server::Service/Service[mysqld]/ensure: change 
 from stopped to running failed: Could not start Service[mysqld]: Execution 
 of '/sbin/service mysqld start' returned 1: mysqld: unrecognized service
 Error: Could not prefetch mysql_user provider 'mysql': Execution of 
 '/usr/bin/mysql -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' 
 returned 1: ERROR 2002 (HY000): Can't connect to local MySQL server through 
 socket '/var/lib/mysql/mysql.sock' (2)
 Notice: 
 /Stage[main]/Mysql::Server::Root_password/Mysql_user[root@localhost]: 
 Dependency Service[mysqld] has failures: true
 Warning: 
 /Stage[main]/Mysql::Server::Root_password/Mysql_user[root@localhost]: 
 Skipping because of failed dependencies
 Notice: /Stage[main]/Mysql::Server::Root_password/File[/root/.my.cnf]: 
 Dependency Service[mysqld] has failures: true
 Warning: /Stage[main]/Mysql::Server::Root_password/File[/root/.my.cnf]: 
 Skipping because of failed dependencies
 Notice: /Stage[main]/Mysql::Server/Anchor[mysql::server::end]: Dependency 
 Service[mysqld] has failures: true
 Warning: /Stage[main]/Mysql::Server/Anchor[mysql::server::end]: Skipping 
 because of failed dependencies
 Notice: /Stage[main]/Mysql::Server::Account_security/Mysql_user[@
 testing-bidb001.useast.fanmanager.com]: Dependency Service[mysqld] has 
 failures: true
 Warning: /Stage[main]/Mysql::Server::Account_security/Mysql_user[@
 testing-bidb001.useast.fanmanager.com]: Skipping because of failed 
 dependencies
 Error: Could not prefetch mysql_database provider 'mysql': Execution of 
 '/usr/bin/mysql -NBe show databases' returned 1: ERROR 2002 (HY000): Can't 
 connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
 Notice: /Stage[main]/Mysql::Server::Account_security/Mysql_database[test]: 
 Dependency Service[mysqld] has failures: true
 Warning: 
 /Stage[main]/Mysql::Server::Account_security/Mysql_database[test]: Skipping 
 because of failed dependencies
 Notice: 
 /Stage[main]/Mysql::Server::Account_security/Mysql_user[@testing-bidb001]: 
 Dependency Service[mysqld] has failures: true
 Warning: 
 /Stage[main]/Mysql::Server::Account_security/Mysql_user[@testing-bidb001]: 
 Skipping because of failed dependencies
 Notice: /Stage[main]/Mysql::Server::Account_security/Mysql_user[@%]: 
 Dependency Service[mysqld] has failures: true
 Warning: /Stage[main]/Mysql::Server::Account_security/Mysql_user[@%]: 
 Skipping because of failed dependencies
 Notice: /Stage[main]/Mysql::Server::Account_security/Mysql_user[
 r...@testing-bidb001.useast.fanmanager.com javascript:]: Dependency 
 Service[mysqld] has failures: true
 Warning: /Stage[main]/Mysql::Server::Account_security/Mysql_user[
 r...@testing-bidb001.useast.fanmanager.com javascript:]: Skipping 
 because of failed dependencies
 

Re: [Puppet Users] puppetlabs/concat Problem on Windows

2015-03-25 Thread Felix Frank
On 03/13/2015 03:40 PM, Fraser Goffin wrote:
 If I look at this file I can see that it indeed does not have read (or
 any other) permissions set.

 I tried adding values user, group and mode but to no avail.

 Can anyone suggest what I need to do here ?

Shot in the dark: Is the agent running without Admin privileges?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55134EDD.9010605%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet Example42/Nagios Module

2015-03-25 Thread Sergiu Cornea
Hi Al,

Thank you for your answer.

What I am trying to do is as follows:

I have successfully installed Nagios server on CentOS 6.6 using Puppet and 
example42/nagios module. I have also added a new host with some checks and 
works like a charm. However I was looking around trying to understand how 
should I go about when I want to add a host such as localhost.cfg, just by 
passing the required variables to the Hiera file. I have tried to use 
nagios::host and nagios::target but doesn't seem to work, all I get it is 
that the run was successful but nothing has been applied.

Do you think that I should use Icinga2?

Thank you for quick reply and for your answer.

Regards,
Sergiu 

On Wednesday, March 25, 2015 at 11:12:25 AM UTC, Alessandro Franceschi 
wrote:

 Do you want to add automatically new hosts on Nagios using exported 
 resources or you want to define your hosts statically with a bunch of 
 (hiera) data?

 Hiera entries for this module are as the ones you may expect from other 
 modules, for each class parameter there's a hiera lookup to the key: 
 $classname::parametername (for example nagios::template to define a custom 
 template for your nagios.cfg)

 Finally, if you want to automate your monitoring setup (new hosts are 
 automatically added to the nagios server using Puppet's exported resources) 
 I'd recommend definitively to use Icinga2 instead of Nagios. This allows 
 much easier and more compact management of the exported resources 
 (basically you can just export host resources, and you don't need to export 
 any service check resource)
  
 al



 On Wednesday, March 25, 2015 at 10:38:19 AM UTC+1, Sergiu Cornea wrote:

 Good morning everyone,

 I am using Puppet 3.7 and the example42/nagios module. As I am a Puppet 
 newbie I have tried to create hosts using hiera but it doesn't work. I have 
 google it but I am just getting the example42/network module example for 
 hiera.

 Could someone guide me into the right direction on how I will go about 
 create a Hiera entry for this module?

 Thank you,

 Regards,
 Sergiu

 This message and its attachments are private and confidential. If you 
 have received this message in error, please notify the sender and remove it 
 and its attachments from your system.

 The University of Westminster is a charity and a company 
 limited by guarantee. Registration number: 977818 England. 
 Registered Office: 309 Regent Street, London W1B 2UW.


-- 


This message and its attachments are private and confidential. If you have 
received this message in error, please notify the sender and remove it and 
its attachments from your system.

The University of Westminster is a charity and a company 
limited by guarantee. Registration number: 977818 England. 
Registered Office: 309 Regent Street, London W1B 2UW.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d6ed185d-54fb-4a32-8e9b-ce3cfab83eb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet Example42/Nagios Module

2015-03-25 Thread Alessandro Franceschi
Do you want to add automatically new hosts on Nagios using exported 
resources or you want to define your hosts statically with a bunch of 
(hiera) data?

Hiera entries for this module are as the ones you may expect from other 
modules, for each class parameter there's a hiera lookup to the key: 
$classname::parametername (for example nagios::template to define a custom 
template for your nagios.cfg)

Finally, if you want to automate your monitoring setup (new hosts are 
automatically added to the nagios server using Puppet's exported resources) 
I'd recommend definitively to use Icinga2 instead of Nagios. This allows 
much easier and more compact management of the exported resources 
(basically you can just export host resources, and you don't need to export 
any service check resource)
 
al



On Wednesday, March 25, 2015 at 10:38:19 AM UTC+1, Sergiu Cornea wrote:

 Good morning everyone,

 I am using Puppet 3.7 and the example42/nagios module. As I am a Puppet 
 newbie I have tried to create hosts using hiera but it doesn't work. I have 
 google it but I am just getting the example42/network module example for 
 hiera.

 Could someone guide me into the right direction on how I will go about 
 create a Hiera entry for this module?

 Thank you,

 Regards,
 Sergiu

 This message and its attachments are private and confidential. If you have 
 received this message in error, please notify the sender and remove it and 
 its attachments from your system.

 The University of Westminster is a charity and a company 
 limited by guarantee. Registration number: 977818 England. 
 Registered Office: 309 Regent Street, London W1B 2UW.


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/39240bb9-2d22-46f9-89e7-93c4ed32402f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.