> The environment name is just a directory within the
> /etc/puppet/environments directory, nothing more. If you use a git branch
> named 'master', you will just have to check it out into an environment
> directory with a different name, such as 'production', 'main', etc... It
> doesn't matter what you want to call the environment directory, as long as
> it's not one of those 4 you mentioned above, and git does not care what the
> name of the directory the files are checked out into. Puppet is not doing
> any sort of checking with git to see what the branch name is.
>
>
Than I am more relaxed. =) Since PuppetLabs mentioned git, I was under the
impression that I had to rename the native "master" branch in git, which it
creates as default.
This is what my plan is, which I hope is not a problem?
cd /etc/puppet
git init
git add fileserver manifests/classes modules nodes
git commit -m "init commit from puppet2"
git branch
# outputs
* master
and then puppet.conf would become
[main]
logdir = /var/log/puppet
rundir = /var/run/puppet
ssldir = $vardir/ssl
[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
[sandra]
modulepath = $confdir/environments/sandra/modules
manifestdir = $confdir/environments/sandra/manifests
manifest = $confdir/environments/sandra/site.pp
where site.pp contains
filebucket {'main':
server => "puppet.example.com",
path => false,
}
File { backup => main }
Exec { path =>
"/usr/bin:/usr/sbin/:/bin:/sbin:/usr/local/bin:/usr/local/sbin" }
import 'classes/*.pp'
import '../nodes/*.pp'
To use it, I would
cd /etc/puppet/environments
git clone /etc/puppet sandra
cd sandra
This would not conflict, right?
I don't have a [master] block in puppet.conf. Is that needed in this case?
--
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.