[Puppet Users] Re: How would you represent this in hiera?

2017-06-08 Thread Joseph Karns
Peter K: What version of the module are you using? On the forge is 1.1.0 If that is the case you will need to include ::ssh::server (You can do this using roles and profiles) This link to Gary Larizza will help you understand what they are and how to do them - http://garylarizza.com/blog/2014/0

[Puppet Users] puppet/splunk Staging Dependency Cycle Issue

2016-05-20 Thread Joseph Karns
Good Morning: I've started using puppetlabs/splunk module and I'm having a Dependency Cycle Issue. Can someone help Error: Could not apply complete catalog: Found 1 dependency cycle: (File[/opt/staging/splunk/splunkforwarder-6.3.3-f44afce176d0-linux-2.6-x86_64.rpm] => Staging::File[splunkforwa

[Puppet Users] Puppetlabs/Splunk Module Help!

2016-02-15 Thread Joseph Karns
Ok...so I'm trying to get the puppetlabs/splunk module to work with Roles and Profiles via Hiera. This is what I have. *hieradata file* splunk::params::version: '6.3.3' splunk::params::build: 'f44afce176d0' splunk::params::src_root: 'puppet:///software/splunk' <- Mapped on Puppetmaster using f

[Puppet Users] Re: Issues with example42/php::augeas or with augeas in general

2016-02-12 Thread Joseph Karns
Thanks everyone for the suggestionsFelix thank you for reminding me of the --debug on the end of a puppet run. This allowed me to find in php.ini that a developer added an extension line of code that is handled else where. RESOLVED! On Tuesday, February 9, 2016 at 3:51:09 PM UTC-5, Joseph

[Puppet Users] Issues with example42/php::augeas or with augeas in general

2016-02-09 Thread Joseph Karns
Hello All: I started getting failed resources from augeas and I'm hoping someone can help. The errors: Warning: Augeas[php_ini-php-error_reporting](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output Error: /Stage[main]/Oit_php::Augeas/Php::Augeas[php-e

[Puppet Users] Re: Remove a PuppetLabs Mysql DB

2015-12-11 Thread Joseph Karns
Hello Sergiu: The Puppet Labs MySQL Module creates the sql statements and runs them against the mysql server, but does not maintain them persistently. So to remove a database run the following mysql -u -p -h -e "DROP DATABASE " Thanks Joey On Thursday, December 10, 2015 at 9:20:46 AM UTC-5,

[Puppet Users] How to do Puppet type which autorequire an existing declaration of another type

2015-05-10 Thread Joseph Karns
Hello Martin: To enforce declaration you should be able to do onevnet_addressrange { '': ensure => present, require => Onevnet['testnet'], .... } Thanks Joseph Karns -- You received this message because you are subscribed to the Google Groups "Puppet Us

[Puppet Users] Puppet for VM on Windows 7 - confused!

2015-05-10 Thread Joseph Karns
reach out to myself if you have any questions on setting any of the pieces up. Thanks Joseph Karns jm...@psu.edu -- 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, sen

Re: [Puppet Users] Re: help with apache configuration

2015-04-26 Thread Joseph Karns
the module’s documentation i see: >> default_vhost >> >> Sets up a default virtual host. Defaults to 'true', set to 'false' to set >> up customized virtual hosts >> <https://forge.puppetlabs.com/puppetlabs/apache#configure-a-virtual-host> >&

[Puppet Users] Re: help with apache configuration

2015-04-20 Thread Joseph Karns
Hello Latina: on your line where you have include apache, change to something like this class{ 'apache': default_mods => true, default_vhost => false, default_ssl_vhost => false, } This will trigger the apache class and allow you to pass param's to it. Thanks Joseph On Sunday, April 1

Re: [Puppet Users] Re: Is there a better way to limit module actions based on facts?

2015-02-12 Thread Joseph Karns
Leam: Can you reply with your code up too this point. Please include your heira file, so I can see the hash. Thanks Joey On Wednesday, February 11, 2015 at 4:49:38 PM UTC-5, leam hall wrote: > > On Wed, Feb 11, 2015 at 4:18 PM, Joseph Karns > wrote: > > Hello Leam: > &

Re: [Puppet Users] Re: Is there a better way to limit module actions based on facts?

2015-02-11 Thread Joseph Karns
Hello Leam: I think your looking for something like this: - define sysusers::setup( $hash ) { case $::osfamily { 'redhat': { $user_home = '/home' } 'solaris': { $user_home = '/export/home' }

[Puppet Users] Re: Is there a better way to limit module actions based on facts?

2015-02-11 Thread Joseph Karns
Leam: The reason you are getting the 400 Error is because you don't have $osfamily defined. You can write your case statement as such: case $::osfamily { 'redhat': { # do something RHEL specific } 'debian': { # do something Debian specific } default: { # ... }

[Puppet Users] Is there a better way to limit module actions based on facts?

2015-02-11 Thread Joseph Karns
Hello Lean: The way to handle this the best is exactly what you did. OS level specifications should be made at the module level. I have seen some try to handle mixed environments with the heira hierarchy, but this makes the modules you build less portable. you would also need to create multipl

[Puppet Users] Re: Bootstrap puppet client

2015-02-04 Thread Joseph Karns
Hello Aries: The root user would execute this or standard user using sudo. This also depends on how its run. If ran during a Kickstart it would be run by the root user. If you setup the machine, then ssh into the server, it would be run by your user you ssh'd into the box with. If that is the c

Re: [Puppet Users] Re: Bootstrap puppet client

2015-02-04 Thread Joseph Karns
ll its topics, 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/be07cc95-df74-43a9-be3d-1ff754dbf46e%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/be07cc95-

[Puppet Users] Re: Bootstrap puppet client

2015-02-03 Thread Joseph Karns
Hello Aries: Puppet Enterprise provides a single line command to complete the same thing. It would look something like this, "curl -k https://:8140/packages/current/install.bash | sudo bash" You could add that to a cloud_init file if using AWS or add it to a kickstart file for local OS loading.

[Puppet Users] Re: puppet cron help

2015-02-02 Thread Joseph Karns
Hello Tim: Just like you would when manually adding a cronjob you should have '*/30', so your resource should look like this. cron { "facts-cron": command => "/usr/bin/facter -y > /etc/mcollective/facts.yaml", user=> 'root', hour=> 0, minute => '*/30' } Hope this helps! Joey