[Puppet Users] Tracking changes made through puppet by users

2017-02-13 Thread Anfield
Whats the best way to track who is making what changes to servers through 
puppet? (Actually running the puppet jobs)

Also if people are using GIT or something, when the code is downloaded and 
merged how will they know from which user the code came from?

-- 
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/0481e2b8-c38f-4da1-8a0b-ae49de71681f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: No nodes reported in Dashboard 2.0.0

2017-02-13 Thread Rob Nelson
There's also puppetboard. See https://github.com/voxpupuli/puppetboard and
https://github.com/voxpupuli/puppet-puppetboard


Rob Nelson
rnels...@gmail.com

On Mon, Feb 13, 2017 at 2:03 PM, Dimitri Yioulos  wrote:

> Thanks, Michael.  Sorry it's fallen by the wayside.  I've now installed
> Foreman.  While, I liked Puppet-Dashboard's output more, Foreman will do
> just fine.
>
> On Friday, February 10, 2017 at 3:06:23 PM UTC-5, Dimitri Yioulos wrote:
>>
>> Hi, All.
>>
>> Previously, I had a Puppet server running version 3.x, and Puppet
>> Dashboard 1.2.  Worked a treat.  Now, I created a new Puppet server version
>> 4.  I got that all working fine.  I also installed Dashboard 2.0.0.  While
>> I can see the Dashboard, there are no nodes reported.  Has anyone else
>> installed Puppet Dashboard 2.0.0 to work with Puppet 4 that might give me
>> some help?
>>
>> Thanks.
>>
> --
> 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/6cc0886b-ee7c-4d0c-b6a0-62165ff7b01b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAC76iT-yh8RM%3D%3DKPxNn20td_cQwC%2BC%3DWSvwnKi_q8ZkN9BvZwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: No nodes reported in Dashboard 2.0.0

2017-02-13 Thread Dimitri Yioulos
Thanks, Michael.  Sorry it's fallen by the wayside.  I've now installed 
Foreman.  While, I liked Puppet-Dashboard's output more, Foreman will do 
just fine.

On Friday, February 10, 2017 at 3:06:23 PM UTC-5, Dimitri Yioulos wrote:
>
> Hi, All.
>
> Previously, I had a Puppet server running version 3.x, and Puppet 
> Dashboard 1.2.  Worked a treat.  Now, I created a new Puppet server version 
> 4.  I got that all working fine.  I also installed Dashboard 2.0.0.  While 
> I can see the Dashboard, there are no nodes reported.  Has anyone else 
> installed Puppet Dashboard 2.0.0 to work with Puppet 4 that might give me 
> some help?
>
> Thanks.
>

-- 
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/6cc0886b-ee7c-4d0c-b6a0-62165ff7b01b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Language Style Guide update

2017-02-13 Thread Christopher Wood
Same budget for tools here. I get along just fine with a combination of 
puppet-mode for emacs and the pre-commit hook from David Walhstrom's 
puppet-git-hooks project.

https://github.com/voxpupuli/puppet-mode

https://github.com/drwahl/puppet-git-hooks

(Although I obviously recommend you install the pre-receive hook on the server 
side of wherever you're pushing to.)

On Mon, Feb 13, 2017 at 09:24:51AM -0800, James Perry wrote:
>Are the any open source or free replacements for Geppetto?   RubyMine is
>like $200/year, which is outside of an IT budget of $0/year for tools. 
> 
>On Friday, January 13, 2017 at 5:03:48 AM UTC-5, Henrik Lindberg wrote:
> 
>  On 13/01/17 08:38, Peter Faller wrote:
>  > Has the Gepetto auto-formatter been updated (or will it be updated) to
>  > match the style guide? Or is there another way of automatically
>  > formatting manifests to match the style guide?
>  >
> 
>  Geppetto is pretty much up to date on the style guide as there are no
>  fundamental changes to the formatting in terms of indentation and
>  spacing. It is however somewhat behind on the language support as it has
>  no understanding of the type system and some other recent additions.
>  Geppetto is no longer maintained by Puppet as announced quite a long
>  time ago.
> 
>  An IDE that has recently updated their support for Puppet is RubyMine.
>  It is well worth taking a look at. Don't know what kind of formatting
>  they offer though.
> 
>  Best,
>  - henrik
> 
>  >
>  > --
>  > 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 [1]puppet-users...@googlegroups.com
>  > .
>  > To view this discussion on the web visit
>  >
>  
> [3]https://groups.google.com/d/msgid/puppet-users/d36a42d7-d46e-4cc5-b198-8b7b396031e3%40googlegroups.com
>  >
>  
> <[4]https://groups.google.com/d/msgid/puppet-users/d36a42d7-d46e-4cc5-b198-8b7b396031e3%40googlegroups.com?utm_medium=email_source=footer>.
>  > For more options, visit [5]https://groups.google.com/d/optout.
> 
>--
>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 [6]puppet-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>
> [7]https://groups.google.com/d/msgid/puppet-users/f0649350-e4df-4bf1-aa13-3f69978e6848%40googlegroups.com.
>For more options, visit [8]https://groups.google.com/d/optout.
> 
> References
> 
>Visible links
>1. javascript:
>2. javascript:
>3. 
> https://groups.google.com/d/msgid/puppet-users/d36a42d7-d46e-4cc5-b198-8b7b396031e3%40googlegroups.com
>4. 
> https://groups.google.com/d/msgid/puppet-users/d36a42d7-d46e-4cc5-b198-8b7b396031e3%40googlegroups.com?utm_medium=email_source=footer
>5. https://groups.google.com/d/optout
>6. mailto:puppet-users+unsubscr...@googlegroups.com
>7. 
> https://groups.google.com/d/msgid/puppet-users/f0649350-e4df-4bf1-aa13-3f69978e6848%40googlegroups.com?utm_medium=email_source=footer
>8. https://groups.google.com/d/optout

-- 
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/20170213183612.GA24194%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Language Style Guide update

2017-02-13 Thread James Perry
Are the any open source or free replacements for Geppetto?   RubyMine is 
like $200/year, which is outside of an IT budget of $0/year for tools. 

On Friday, January 13, 2017 at 5:03:48 AM UTC-5, Henrik Lindberg wrote:
>
> On 13/01/17 08:38, Peter Faller wrote: 
> > Has the Gepetto auto-formatter been updated (or will it be updated) to 
> > match the style guide? Or is there another way of automatically 
> > formatting manifests to match the style guide? 
> > 
>
> Geppetto is pretty much up to date on the style guide as there are no 
> fundamental changes to the formatting in terms of indentation and 
> spacing. It is however somewhat behind on the language support as it has 
> no understanding of the type system and some other recent additions. 
> Geppetto is no longer maintained by Puppet as announced quite a long 
> time ago. 
>
> An IDE that has recently updated their support for Puppet is RubyMine. 
> It is well worth taking a look at. Don't know what kind of formatting 
> they offer though. 
>
> Best, 
> - henrik 
>
>
> > 
> > -- 
> > 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...@googlegroups.com  
> > . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/d36a42d7-d46e-4cc5-b198-8b7b396031e3%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/puppet-users/d36a42d7-d46e-4cc5-b198-8b7b396031e3%40googlegroups.com?utm_medium=email_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>

-- 
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/f0649350-e4df-4bf1-aa13-3f69978e6848%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: optimize my configuration

2017-02-13 Thread puppetstan
thanks for your answer

But with this conf, my package package-5.0.el6.noarch.rpm is automatically 
downloaded even if my package version is 5.0. So it's my problem. I don't 
want downloaded package package-5.0.el6.noarch.rpm if my version package is 
5.0...

file { "/tmp/package-5.0.el6.noarch.rpm":
#ensure => 'present',
   source => "puppet:///modules/puppet/package-5.0.el6.noarch.rpm"
  }


package { "package":
ensure => '5.0',
provider => 'rpm',
source => "/tmp/package-5.0.el6.noarch.rpm",
require => File["/tmp/package-5.0.el6.noarch.rpm"]
}

Regards


Le lundi 13 février 2017 16:44:03 UTC+1, Michael Watters a écrit :
>
> ensure => '5.0' should work but you may want to add a dependency to the 
> package resource to ensure that the file is downloaded first.
>
> package { "package":
> ensure => '5.0',
> provider => 'rpm',
> source => '/tmp/package-5.0.el6.noarch.rpm',
> require => File['/tmp/package-5.0.el6.noarch.rpm',
> }
>
>
> On Monday, February 13, 2017 at 7:56:09 AM UTC-5, puppetstan wrote:
>>
>> Hi,
>>
>> i would like modify my conf because is not satisfactory
>>
>> i would live verify my package version and if my version is 5.0 i do 
>> notfhing but if the version is 2.0 for example i download my package in 
>> /tmp and i update package...this is my conf but it's not very good...
>>
>> file { "/tmp/package-5.0.el6.noarch.rpm":
>> ensure => 'present',
>>source => "puppet:///modules/package/package-5.0.el6.noarch.rpm"
>>   }
>>
>> package { "package":
>> ensure => '5.0',
>> provider => 'rpm',
>> source => "/tmp/package-5.0.el6.noarch.rpm"
>> }
>>
>> can you have an idea with condition if i do nothing else dwonload package 
>> and i update...
>> regards
>>
>

-- 
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/c089f9c6-95ae-45f7-819e-332a1900f362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] hiera error in agent run after reboot

2017-02-13 Thread Michael Zoet

Hello Puppet Users,

I have a strange problem after I restarted my Puppet master (and  
several other nodes). When I do a puppet agent run now I get the  
following output:


===
puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on  
SERVER: Server Error: Evaluation Error: Error while evaluating a  
Resource Statement, Lookup of key 'lookup_options' failed: The Lookup  
Configuration at '/etc/puppetlabs/code/hiera.yaml' has wrong type,  
unrecognized key 'http' at  
/etc/puppetlabs/code/environments/production/roles/role_base/manifests/init.pp:5:5 on node  
host-1.node.ekimp.local

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The contents of /etc/puppetlabs/code/hiera.yaml
===
---
:backends:
  - yaml
  - etcd

:logger: console

:hierarchy:
  - nodes/%{trusted.certname}
  - projects/%{node_project}
  - roles/%{node_role}/%{node_instance}
  - roles/%{node_role}
  - location/%{node_location}/%{node_location_no}
  - location/%{node_location}
  - server_type/%{node_server_type}
  - os/%{operatingsystem}/%{lsbdistcodename}
  - users
  - common
  - passwords

:yaml:
  :datadir: '/etc/puppetlabs/code/environments/%{environment}/data'

:http:
  :host: 192.168.122.1
  :port: 4001
  :paths:
- /data/nodes/%{trusted.certname}
- /data
===

The :http: config is for connecting to etcd via this Puppet module  
https://forge.puppet.com/garethr/hiera_etcd.


For me it seems that this module is not loaded anymore. What bothers  
me is that there were no configuration changes, only the reboot.  
Before the reboot everything worked fine. After that the logs are full  
with the error message from above.
I am completely at a loss here what might be wrong. Has someone any  
ideas? Or hints? Or links to documentation? Or recommendations how to  
use etcd (https://github.com/coreos/etcd) with hiera? (I did not set  
this up I am only maintaining it.)


Technical details:
- all servers run Debian Jessie
- packages are from the Puppetlabs Debian repository http://apt.puppetlabs.com
- Puppetserver version 2.7.2-1puppetlabs1
- Puppet agent version 1.9.1-1jessie on all nodes

Content of  
/etc/puppetlabs/code/environments/production/roles/role_base/manifests/init.pp  
(Nothing fancy, it is the base class that every node gets applied.)

===
# base class for everyone
class role_base {
  class pre {
# ensure_resource('class', 'profile_base::apt', {})
class { 'profile_base': }
  }
  class { 'role_base::pre': stage => 'pre_setup' }

  class { 'profile_base::apt': }
  class { 'profile_base::locales': }
  class { 'profile_base::network': }
  class { 'profile_etcd': }
  class { 'profile_base::user': }
  class { 'profile_base::sudo': }
  class { 'profile_base::puppet': }
  class { 'profile_base::backup': }
  class { 'profile_base::env': }
  class { 'profile_base::ssh': }
  class { 'profile_base::host': }
  class { 'profile_icinga': }

  if $virtual == 'physical' {
class { 'profile_base::ntp': }
  }
}
===

THX in advance,
Michael

--
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/20170213164712.Horde.NapSrKyfMK4SQahhu22ItQ3%40server06.zoet.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: optimize my configuration

2017-02-13 Thread Michael Watters
ensure => '5.0' should work but you may want to add a dependency to the 
package resource to ensure that the file is downloaded first.

package { "package":
ensure => '5.0',
provider => 'rpm',
source => '/tmp/package-5.0.el6.noarch.rpm',
require => File['/tmp/package-5.0.el6.noarch.rpm',
}


On Monday, February 13, 2017 at 7:56:09 AM UTC-5, puppetstan wrote:
>
> Hi,
>
> i would like modify my conf because is not satisfactory
>
> i would live verify my package version and if my version is 5.0 i do 
> notfhing but if the version is 2.0 for example i download my package in 
> /tmp and i update package...this is my conf but it's not very good...
>
> file { "/tmp/package-5.0.el6.noarch.rpm":
> ensure => 'present',
>source => "puppet:///modules/package/package-5.0.el6.noarch.rpm"
>   }
>
> package { "package":
> ensure => '5.0',
> provider => 'rpm',
> source => "/tmp/package-5.0.el6.noarch.rpm"
> }
>
> can you have an idea with condition if i do nothing else dwonload package 
> and i update...
> regards
>

-- 
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/183e82ab-3287-449f-9612-93031acf0c91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: No nodes reported in Dashboard 2.0.0

2017-02-13 Thread Michael Watters


puppet-dashboard is EOL and has not been updated in quite a while. 
You'll need to move to a modern solution such as Puppetboard which does
work with Puppet Server and Puppetdb 4.



On Friday, February 10, 2017 at 3:06:23 PM UTC-5, Dimitri Yioulos wrote:
>
> Hi, All.
>
> Previously, I had a Puppet server running version 3.x, and Puppet 
> Dashboard 1.2.  Worked a treat.  Now, I created a new Puppet server version 
> 4.  I got that all working fine.  I also installed Dashboard 2.0.0.  While 
> I can see the Dashboard, there are no nodes reported.  Has anyone else 
> installed Puppet Dashboard 2.0.0 to work with Puppet 4 that might give me 
> some help?
>
> Thanks.
>

-- 
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/fd8ca648-b1e7-4e55-952c-2ae980be771d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] optimize my configuration

2017-02-13 Thread puppetstan
Hi,

i would like modify my conf because is not satisfactory

i would live verify my package version and if my version is 5.0 i do 
notfhing but if the version is 2.0 for example i download my package in 
/tmp and i update package...this is my conf but it's not very good...

file { "/tmp/package-5.0.el6.noarch.rpm":
ensure => 'present',
   source => "puppet:///modules/package/package-5.0.el6.noarch.rpm"
  }

package { "package":
ensure => '5.0',
provider => 'rpm',
source => "/tmp/package-5.0.el6.noarch.rpm"
}

can you have an idea with condition if i do nothing else dwonload package 
and i update...
regards

-- 
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/9c1874f7-f9ab-406f-bd66-df2fc9f74a9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.