Cannot apply changes on puppet agents

173 views
Skip to first unread message

Al Man

unread,
Mar 21, 2014, 3:09:12 AM3/21/14
to puppet...@googlegroups.com
Hi!
I have the entry in my site.pp:
user { 'testuser':
name => 'testuser',
ensure => 'present',
home => '/export/home/testuser',
password => '$5$3dA8tfNG$XIKm1FRM3limH12jzdSVjQAcCWzxj64H6BI/n66',
roles => 'root',
managehome => true,
}

But my agents doesnt apply any changes in system:
Info: Caching catalog for testhost.local
Info: Applying configuration version '1395384645'
Finished catalog run in 0.12 seconds

However, local command "puppet apply site.pp" works:
/Stage[main]//User[testuser]/ensure: created
Finished catalog run in 1.55 seconds
Any ideas?

jcbollinger

unread,
Mar 24, 2014, 10:33:52 AM3/24/14
to puppet...@googlegroups.com


Two likely scenarios come to mind:
  1. a user matching the declaration already exists on the system, or
  2. the catalog retrieved from the master does not contain the resource.

The user might already exist for any number of reasons, but a good one would be that you created him previously via "puppet apply".

The catalog might not contain the resource if the site.pp file you describe is not in the right place or has a different name.  By default the right place and name is "/etc/puppet/manifests/site.pp", but that that can be changed in the config file.


John

Reply all
Reply to author
Forward
0 new messages