CraftyTech
2010-Sep-10 19:14 UTC
[Puppet Users] Mult Environments w/ Foreman/Pupper don''t work....
puppet.conf (server):
[main]
vardir = /var/lib/puppet
logdir = /var/log/puppet
rundir = /var/run/puppet
reports= log,foreman
clientyamldir = /var/lib/puppet/yaml/node
pluginsync = true
external_nodes = /etc/puppet/external_node.rb
node_terminus = exec
manifest = /etc/puppet/manifests/site.pp
modulepath = /etc/puppet/modules
[development_prog]
manifest = /code/puppet/manifests/site.pp
modulepath = /code/puppet/modules
[puppetmasterd]
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
templatedir = /etc/puppet/manifests/templates
clientyamldir = /var/lib/puppet/yaml/node
reportdir = /var/lib/puppet/reports
storeconfigs = true
dbadapter = mysql
dbuser = app_puppet
dbpassword = xxxxxxxxxxxx
dbserver = localhost
dbsocket = /sql/mysql/mysql.sock
rrddir = /var/lib/puppet/rrd
rrdinterval = $runinterval
rrdgraph = true
[puppetd]
report = true
Puppet.conf (client):
[puppetd]
environment = development_prog
report = true
listen = true
runinterval = 43200
Yet, when I run "puppetd -t" it still tries to use the external
node classifier, and it ignores the development_prog setting... What
am I missing here? Does the fact that I foreman as an external node
classifier precludes me from using an alternate dev environment
locally? Please advise.
Cheers,
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-13 14:26 UTC
[Puppet Users] Re: Mult Environments w/ Foreman/Pupper don''t work....
Has anyone ran into this particular issue before? It seems straight forward to have multiple environments, by outlining them in puppet.conf for both server and client, but for some reason is not working. Has anyone have had experience with this particular issue? Thanks, On Sep 10, 3:14 pm, CraftyTech <hmmed...@gmail.com> wrote:> puppet.conf (server): > > [main] > vardir = /var/lib/puppet > logdir = /var/log/puppet > rundir = /var/run/puppet > reports= log,foreman > clientyamldir = /var/lib/puppet/yaml/node > pluginsync = true > external_nodes = /etc/puppet/external_node.rb > node_terminus = exec > manifest = /etc/puppet/manifests/site.pp > modulepath = /etc/puppet/modules > > [development_prog] > manifest = /code/puppet/manifests/site.pp > modulepath = /code/puppet/modules > > [puppetmasterd] > ssl_client_header = SSL_CLIENT_S_DN > ssl_client_verify_header = SSL_CLIENT_VERIFY > templatedir = /etc/puppet/manifests/templates > clientyamldir = /var/lib/puppet/yaml/node > reportdir = /var/lib/puppet/reports > storeconfigs = true > dbadapter = mysql > dbuser = app_puppet > dbpassword = xxxxxxxxxxxx > dbserver = localhost > dbsocket = /sql/mysql/mysql.sock > rrddir = /var/lib/puppet/rrd > rrdinterval = $runinterval > rrdgraph = true > > [puppetd] > report = true > > Puppet.conf (client): > [puppetd] > environment = development_prog > report = true > listen = true > runinterval = 43200 > > Yet, when I run "puppetd -t" it still tries to use the external > node classifier, and it ignores the development_prog setting... What > am I missing here? Does the fact that I foreman as an external node > classifier precludes me from using an alternate dev environment > locally? Please advise. > > Cheers,-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy
2010-Sep-13 14:39 UTC
Re: [Puppet Users] Re: Mult Environments w/ Foreman/Pupper don''t work....
what is the foreman environment for the node? if you are using external nodes, than you usually just need to define the environment there (and its not required on the puppet.conf). afair there was a bug with the ordering if its defined in multiple places (e.g. who has a higher prio when defined in puppet.conf and in external nodes). Ohad On Mon, Sep 13, 2010 at 4:26 PM, CraftyTech <hmmedina@gmail.com> wrote:> Has anyone ran into this particular issue before? It seems straight > forward to have multiple environments, by outlining them in > puppet.conf for both server and client, but for some reason is not > working. Has anyone have had experience with this particular issue? > > Thanks, > > > > On Sep 10, 3:14 pm, CraftyTech <hmmed...@gmail.com> wrote: > > puppet.conf (server): > > > > [main] > > vardir = /var/lib/puppet > > logdir = /var/log/puppet > > rundir = /var/run/puppet > > reports= log,foreman > > clientyamldir = /var/lib/puppet/yaml/node > > pluginsync = true > > external_nodes = /etc/puppet/external_node.rb > > node_terminus = exec > > manifest = /etc/puppet/manifests/site.pp > > modulepath = /etc/puppet/modules > > > > [development_prog] > > manifest = /code/puppet/manifests/site.pp > > modulepath = /code/puppet/modules > > > > [puppetmasterd] > > ssl_client_header = SSL_CLIENT_S_DN > > ssl_client_verify_header = SSL_CLIENT_VERIFY > > templatedir = /etc/puppet/manifests/templates > > clientyamldir = /var/lib/puppet/yaml/node > > reportdir = /var/lib/puppet/reports > > storeconfigs = true > > dbadapter = mysql > > dbuser = app_puppet > > dbpassword = xxxxxxxxxxxx > > dbserver = localhost > > dbsocket = /sql/mysql/mysql.sock > > rrddir = /var/lib/puppet/rrd > > rrdinterval = $runinterval > > rrdgraph = true > > > > [puppetd] > > report = true > > > > Puppet.conf (client): > > [puppetd] > > environment = development_prog > > report = true > > listen = true > > runinterval = 43200 > > > > Yet, when I run "puppetd -t" it still tries to use the external > > node classifier, and it ignores the development_prog setting... What > > am I missing here? Does the fact that I foreman as an external node > > classifier precludes me from using an alternate dev environment > > locally? Please advise. > > > > Cheers, > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
CraftyTech
2010-Sep-13 15:12 UTC
[Puppet Users] Re: Mult Environments w/ Foreman/Pupper don''t work....
Hello Ohad,
Essentially I''m trying to have two separate sets of nodes: One
set defined externally via Foreman (Main Env), and one set specified
directly in puppet (development_prog env ). I''m just trying to test
out how my code works in one env versus the other. Is this possible?
Can I serve internal and external nodes via the same puppet/foreman
install? Please advise.
Thanks,
On Sep 13, 10:39 am, Ohad Levy <ohadl...@gmail.com>
wrote:> what is the foreman environment for the node? if you are using external
> nodes, than you usually just need to define the environment there (and its
> not required on the puppet.conf).
>
> afair there was a bug with the ordering if its defined in multiple places
> (e.g. who has a higher prio when defined in puppet.conf and in external
> nodes).
>
> Ohad
>
>
>
> On Mon, Sep 13, 2010 at 4:26 PM, CraftyTech <hmmed...@gmail.com>
wrote:
> > Has anyone ran into this particular issue before? It seems straight
> > forward to have multiple environments, by outlining them in
> > puppet.conf for both server and client, but for some reason is not
> > working. Has anyone have had experience with this particular issue?
>
> > Thanks,
>
> > On Sep 10, 3:14 pm, CraftyTech <hmmed...@gmail.com> wrote:
> > > puppet.conf (server):
>
> > > [main]
> > > vardir = /var/lib/puppet
> > > logdir = /var/log/puppet
> > > rundir = /var/run/puppet
> > > reports= log,foreman
> > > clientyamldir = /var/lib/puppet/yaml/node
> > > pluginsync = true
> > > external_nodes = /etc/puppet/external_node.rb
> > > node_terminus = exec
> > > manifest = /etc/puppet/manifests/site.pp
> > > modulepath = /etc/puppet/modules
>
> > > [development_prog]
> > > manifest = /code/puppet/manifests/site.pp
> > > modulepath = /code/puppet/modules
>
> > > [puppetmasterd]
> > > ssl_client_header = SSL_CLIENT_S_DN
> > > ssl_client_verify_header = SSL_CLIENT_VERIFY
> > > templatedir = /etc/puppet/manifests/templates
> > > clientyamldir = /var/lib/puppet/yaml/node
> > > reportdir = /var/lib/puppet/reports
> > > storeconfigs = true
> > > dbadapter = mysql
> > > dbuser = app_puppet
> > > dbpassword = xxxxxxxxxxxx
> > > dbserver = localhost
> > > dbsocket = /sql/mysql/mysql.sock
> > > rrddir = /var/lib/puppet/rrd
> > > rrdinterval = $runinterval
> > > rrdgraph = true
>
> > > [puppetd]
> > > report = true
>
> > > Puppet.conf (client):
> > > [puppetd]
> > > environment = development_prog
> > > report = true
> > > listen = true
> > > runinterval = 43200
>
> > > Yet, when I run "puppetd -t" it still tries to use
the external
> > > node classifier, and it ignores the development_prog setting...
What
> > > am I missing here? Does the fact that I foreman as an external
node
> > > classifier precludes me from using an alternate dev environment
> > > locally? Please advise.
>
> > > Cheers,
>
> > --
> > You received this message because you are subscribed to the Google
Groups
> > "Puppet Users" group.
> > To post to this group, send email to puppet-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@google
groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.