You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to set up a new Puppet Master on Puppet 4.2.3 and see the following error when Puppet tries to install r10k:
root@puppet-master:/etc/puppetlabs# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet-master.sc1.lan
Info: Applying configuration version '1448333411'
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_rmdir - /etc/puppetlabs/r10k/r10k.yaml20151123-14043-1xq6uu7.lock at 92:/etc/puppetlabs/code/environments/production/modules/r10k/manifests/config.pp
Error: Could not set 'file' on ensure: No such file or directory @ dir_s_rmdir - /etc/puppetlabs/r10k/r10k.yaml20151123-14043-1xq6uu7.lock at 92:/etc/puppetlabs/code/environments/production/modules/r10k/manifests/config.pp
Wrapped exception:
No such file or directory @ dir_s_rmdir - /etc/puppetlabs/r10k/r10k.yaml20151123-14043-1xq6uu7.lock
Error: /Stage[main]/R10k::Config/File[r10k.yaml]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory @ dir_s_rmdir - /etc/puppetlabs/r10k/r10k.yaml20151123-14043-1xq6uu7.lock at 92:/etc/puppetlabs/code/environments/production/modules/r10k/manifests/config.pp
Notice: Applied catalog in 0.44 seconds
Was able to fix the issue by hand creating the /etc/puppetlabs/r10k folder and assinging permissions to the puppet user.
The next run was successful.
root@puppet-master:/etc/puppetlabs# ls -lah
total 32K
drwxr-xr-x 8 puppet puppet 4.0K Nov 23 18:59 .
drwxr-xr-x 99 root root 4.0K Nov 20 06:35 ..
drwxr-xr-x 4 puppet sysadmins 4.0K Nov 17 18:25 code
lrwxrwxrwx 1 root root 55 Nov 11 15:56 hiera.yaml -> /etc/puppetlabs/code/environments/production/hiera.yaml
drwxr-xr-x 2 puppet sysadmins 4.0K Nov 4 12:32 mcollective
drwxr-xr-x 3 puppet sysadmins 4.0K Nov 23 17:24 puppet
drwxr-xr-x 4 puppetdb sysadmins 4.0K Nov 10 18:35 puppetdb
drwxr-xr-x 3 puppet sysadmins 4.0K Nov 4 12:32 puppetserver
drwxr-xr-x 2 root root 4.0K Nov 23 18:59 r10k
root@puppet-master:/etc/puppetlabs# mkdir r10k
root@puppet-master:/etc/puppetlabs# chown puppet:sysadmins r10k/
root@puppet-master:/etc/puppetlabs# ls -lah
total 32K
drwxr-xr-x 8 puppet puppet 4.0K Nov 23 18:59 .
drwxr-xr-x 99 root root 4.0K Nov 20 06:35 ..
drwxr-xr-x 4 puppet sysadmins 4.0K Nov 17 18:25 code
lrwxrwxrwx 1 root root 55 Nov 11 15:56 hiera.yaml -> /etc/puppetlabs/code/environments/production/hiera.yaml
drwxr-xr-x 2 puppet sysadmins 4.0K Nov 4 12:32 mcollective
drwxr-xr-x 3 puppet sysadmins 4.0K Nov 23 17:24 puppet
drwxr-xr-x 4 puppetdb sysadmins 4.0K Nov 10 18:35 puppetdb
drwxr-xr-x 3 puppet sysadmins 4.0K Nov 4 12:32 puppetserver
drwxr-xr-x 2 puppet sysadmins 4.0K Nov 23 18:59 r10k
root@puppet-master:/etc/puppetlabs# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet-master
Info: Applying configuration version '1448333960'
Notice: /Stage[main]/R10k::Config/File[r10k.yaml]/ensure: defined content as '{md5}c1fc620778689e769fe060df9acdec9d'
Notice: Applied catalog in 0.48 seconds
The text was updated successfully, but these errors were encountered:
This was fixed at https://github.com/acidprime/r10k/pull/242 . This fix was put in the 3.2.0 release on puppetforge on Dec 16, 2015. If you were using the latest module on puppet forge on Nov 23, 2015 it didn't have the fix in it at that time. If you try again now, it should work without doing the manual step.
Trying to set up a new Puppet Master on Puppet 4.2.3 and see the following error when Puppet tries to install r10k:
Was able to fix the issue by hand creating the
/etc/puppetlabs/r10k
folder and assinging permissions to the puppet user.The next run was successful.
The text was updated successfully, but these errors were encountered: