Ask Your Question

symlink for environment

asked 2014-08-11 02:42:53 -0600

lgbff gravatar image

I have several environment in my puppet installation. I conf the environmenpath variable in puppet.conf:

environmentpath = $confdir/environments

I'll the backup environment as a symlink to production, but this failed on Client.

Could not evaluate: Could not retrieve information from environment backup source(s) puppet://puppet/plugins

Here ist the environmentpath:

[08:52:51] #:/etc/puppet> ll environments/
insgesamt 24
drwxr-xr-x 6 puppet puppet 4096 Aug  7 14:10 ./
drwxr-xr-x 7 puppet   puppet   4096 Aug 11 08:52 ../
lrwxrwxrwx 1 puppet puppet 10 Aug  7 14:10 backup -> produktion
drwxr-xr-x 6 puppet puppet 4096 Jun 13 07:08 dev/
drwxr-xr-x 6 puppet puppet 4096 Jul  2 09:51 production/
drwxr-xr-x 6 puppet puppet 4096 Jun  5 10:20 test/

Puppet Version 3.6.2 on master (Debian), 3.3.1 on Agent (SLES)

I'ts possible environment path is a symlink?

thx Karsten

edit retag flag offensive close merge delete


oh, i see the mistake produktion is not production..... many thx

lgbff gravatar imagelgbff ( 2014-08-12 02:09:06 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-08-12 01:08:28 -0600

ramindk gravatar image

Did you mean to spell production two different ways in your example?

edit flag offensive delete link more

answered 2014-08-11 16:38:13 -0600

spuder gravatar image

It appears that you are using config file environments. Keep in mind that they are deprecated, and should be replaced with directory environments.

Directory Environments

Config File Environments

Likely the clients are unable to follow symlinks when retrieving their environment. Though from your example, it seems that the symlink won't do what you expect. (Symlinks just update inodes, so they don't actually backup anything). A change to production will be a change to the "backup".

It would be much better to convert to a directory environment, and use something like rsync, or git for backups.

edit flag offensive delete link more


hmmm.... I think i use directory environment. The config line

environmentpath = $confdir/environments
to indicate that. Each directory as one environment. I'll use the backup environment as 1to1 copy of production environment. I our company we have a backup staging, that is importent for monitoring etc. reagards Karsten

lgbff gravatar imagelgbff ( 2014-08-12 02:05:54 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-08-11 02:42:53 -0600

Seen: 525 times

Last updated: Aug 11 '14