Hello,
I have my manifests and modules in git in /etc/puppet/git and changed the
paths in puppet.conf but it does not find the file
/etc/puppet/git/modules/git_puppet_update/files/update.sh.
Error: Could not find command
'/etc/puppet/modules/git_puppet_update/files/update.sh'
Error:
/Stage[main]/Git_puppet_update/Exec[/etc/puppet/modules/git_puppet_update/files/update.sh]/returns:
change from notrun to 0 failed: Could not find command
'/etc/puppet/modules/git_puppet_update/files/update.sh'
Does anybody know what to change?
[root@vm6739 puppet]# puppet master --configprint modulepath
/etc/puppet/git/modules
[root@vm6739 puppet]# puppet agent --configprint modulepath
/etc/puppet/git/modules
~/git/test.git/modules/git_puppet_update/manifests$ cat init.pp
class git_puppet_update {
file { "/etc/puppet/update.sh":
ensure => present,
source => "puppet:///modules/git_puppet_update/update.sh",
own => "git",
mode => 0774,
group => "git",
}
exec { "/etc/puppet/update.sh":
require => File["/etc/puppet/update.sh"],
}
}
My puppet.conf looks like that
[master]
# Zertifikatsname
certname=rh6-puppet-master.baag
manifestdir=/etc/puppet/git/manifests
modulepath=/etc/puppet/git/modules
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
reports = log, foreman
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
modulepath=/etc/puppet/git/modules
Regards,
Andreas
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.