Re: [Puppet Users] Puppet Templates to cope with potential multiple sessions settings in the config file

2013-11-04 Thread Jacob Fleming-Gale
Hi Richie, There's a few options available with the Ruby ERB templating in Puppet, depending on how you want to control the output, these pages are a good introduction to ERB and Puppet. http://docs.puppetlabs.com/guides/templating.html http://docs.puppetlabs.com/learning/templates.html Her

Re: [Puppet Users] Firewall Issues

2013-11-05 Thread Jacob Fleming-Gale
Hi Danny, Are you able to post the contents of the classes containing the firewall resources? Jacob On Wednesday, November 6, 2013, Danny Roberts wrote: > We are using the puppetlabs-firewall module ( > https://forge.puppetlabs.com/puppetlabs/firewall) and we were having the > issue where by th

Re: [Puppet Users] Problems with Fact returning the version of an installed RPM.

2013-11-15 Thread Jacob Fleming-Gale
Hi Richie, Using the iptables_version fact thats part of the puppetlabs firewall module, you can tweak that to change the command to return the rpm version as in Dan's example. The below code will return the full version string for the sqlite rpm Jacob Facter.add(:sqlite_version) do confine

Re: [Puppet Users] matching all current "ipaddress_ethX" facts

2013-12-02 Thread Jacob Fleming-Gale
the has_ip_network function that's part of puppet-stdlib may help, it matches all interfaces against a network address and return a boolean if a match is found. https://github.com/puppetlabs/puppetlabs-stdlib#has_ip_network On 3 December 2013 04:18, jcbollinger wrote: > > > On Friday, November

Re: [Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError:

2014-01-19 Thread Jacob Fleming-Gale
Hi Jyotir, The filename and the defined type names need to be the same, you can either rename the define to accounts::system_users or rename the file to system.pp Jacob On 20 January 2014 14:52, jyotir bhandari wrote: > Hi > > I am getting error when i try to add system user including fields

Re: [Puppet Users] r10k and dynamic environments

2014-03-26 Thread Jacob Fleming-Gale
Hi Steven, r10k does not accept Puppet variables or facts as it run's outside of Puppet, the confusion is because Gary's example is using the awesome r10k puppet module by Zack to setup the r10k configuration, hence it can use the puppet facts or variables to create and manage the /etc/r10k.yaml c