[Puppet Users] Using puppet for openvpn clients
Hello, I have a question about using puppet to distribute openvpn configs to clients that I am creating in cloudstack. To create my cloudstack VMs, I have something similar to this: cloudstack_instance { 'myVM: ensure= 'present', flavor= 'Small Instance', zone = 'myzone', image = 'myimage', user_data = 'role=ovpnclient', } What is the right pattern to follow to distribute my generated client openvpn configs to these instances? It seems like the luxflux openvpn module just generates the config. Should I just put them into a modules file folder, and then use puppet as a file server to push the file based on a role? Has anyone else use puppet to distribute and start openvpn for client connections? I'd be interested in hearing what you did. Thanks -Derek -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bade4aa3-b030-400d-a309-d22f915cda69%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Process hang on FreeBSD
Just wanted to throw in that you should update to pkgng. pkg_add isnt even going to be an option in FreeBSD10. I have been using https://forge.puppetlabs.com/zleslie/pkgng successfully with FreeBSD10 Beta 3 and puppet. -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/47f94b33-f9b6-4d98-9573-6364cfa51ace%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Access class results variables in puppet
I see what you're saying about the design of the code. The suggested workaround you proposed doesn't work. It's the same as if I just have the literal in there. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource 'Openvpn::Server[winterthur]' for relationship on 'Openvpn::Client[client1]' on node 28ae5ab6-e8f4-4da1-bae3-4df3ce94a6fe.cs1cloud.internal Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run I think I just realized something about the library after looking at the dependencies in the client code. This module actually just generates all of the configs but i dont think is meant to actually be used to deploy onto a virtual machine. The end result if I run this on a specific node is that I end up with an importable openvpn profile. I was under the impression that the openvpn::client name actually installed the profile on the actual remote node. I guess I am going to need a separate process to import that openvpn profile on a specific node that is a client node. The end goal here is to automatically provision a node that is a server, and a few nodes that connect to that server with openvpn. This module won't actually do all of that like I thought. -Derek On Tuesday, December 10, 2013 1:25:05 AM UTC-5, Matthew Barr wrote: In this case, you’ve got 2 issues. 1, most of that data would, ideally, be in Hiera. But, with a defined type, you can’t use the parameterized classes lookup. 2. That case statement means that the catalog for the system with “client doesn’t even know anything about the “access resources. I’d suggest in this case: (but I’m not loving the code design, to be honest. Look under the example for more. $vpn_server = ‘winterthur' case $::role { 'access': { snip openvpn::server {“$vpn_server : country = 'CH', province = 'ZH', city = 'Winterthur', organization = 'example.org', email= 'ro...@example.org javascript:', server = '10.200.200.0 255.255.255.0'} } 'client': { notify {Applying client config :} openvpn::client { 'client1': server = “$vpn_server } } } This screams for a better separation, to me. Unless you only have 1 set of servers clients… — Maybe use a class, with the parameters pulling in the details from hiera, and using the variable parameters in the code. — they would include city,province, server_ip, email, country. Matthew Barr mb...@mbarr.net javascript: c: (646) 727-0535 On Dec 9, 2013, at 5:32 PM, Derek Cole derek...@gmail.com javascript: wrote: Hello, I am not exactly sure how to phrase this, but consider the following: case $::role { 'access': { notify {Applying access packages :} include access_packages freebsd::rc_conf { 'test' : value = 'yes', ensure = 'present' } openvpn::server {'winterthur' : country = 'CH', province = 'ZH', city = 'Winterthur', organization = 'example.org', email= 'ro...@example.org javascript:', server = '10.200.200.0 255.255.255.0'} } 'client': { notify {Applying client config :} openvpn::client { 'client1': server = winterthur } } } What I am trying to do in 'client' case is reference the server that was defined in the 'access' case. Is this possible? The openvpn module here; https://github.com/luxflux/puppet-openvpn contains some examples and such that lead me to believe there should be a reference, but it seems like that only is applicable if they have the same scope. How would I go about storing off the 'winterthur' openvpn::server for use by the clients later? Puppet's class variable access and scoping in general are a little confusing to me at this point. I tried the obvious assigning a $variable but that didn't work either. Also, looking at the openvpn code, it seems like openvpn::server is defined instead of using the class keyword. does this make a difference? Thanks
[Puppet Users] Access class results variables in puppet
Hello, I am not exactly sure how to phrase this, but consider the following: case $::role { 'access': { notify {Applying access packages :} include access_packages freebsd::rc_conf { 'test' : value = 'yes', ensure = 'present' } openvpn::server {'winterthur' : country = 'CH', province = 'ZH', city = 'Winterthur', organization = 'example.org', email= 'r...@example.org', server = '10.200.200.0 255.255.255.0'} } 'client': { notify {Applying client config :} openvpn::client { 'client1': server = winterthur } } } What I am trying to do in 'client' case is reference the server that was defined in the 'access' case. Is this possible? The openvpn module here; https://github.com/luxflux/puppet-openvpn contains some examples and such that lead me to believe there should be a reference, but it seems like that only is applicable if they have the same scope. How would I go about storing off the 'winterthur' openvpn::server for use by the clients later? Puppet's class variable access and scoping in general are a little confusing to me at this point. I tried the obvious assigning a $variable but that didn't work either. Also, looking at the openvpn code, it seems like openvpn::server is defined instead of using the class keyword. does this make a difference? Thanks -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9de48764-707d-4529-a018-42a4782310f3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Puppet agent not loading module correctly
Hello, I have a puppetmaster/agent setup. Puppet master is Ubuntu 12.04 and puppet agent is ubuntu 12.04 When I do puppet agent --test, I get some error message like below. I have checked and fog and ruby are the same versions on both boxes. In fact though, I dont have any requirement for cloudstack_resources on the nodes, so I am not sure why that is getting pulled in anway. But the real problem I have is why does it work on one ubuntu box (on the puppet master if i do puppet apply site.pp) but doesnt work on the agent? I am no ruby expert, so any help debugging is appreciated. -Derek nfo: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/anchor.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/keys.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/min.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/cloudstack_image.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/type/cloudstack_image.rb: Could not autoload /var/lib/puppet/lib/puppet/provider/cloudstack_image/default.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/strftime.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/downcase.rb info: Loading downloaded plugin /var/lib/puppet/lib/facter/util/puppet_settings.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/provider/cloudstack_flavor/default.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/cloudstack_flavor/default.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/delete.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/has_key.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/cloudstack_zone.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/type/cloudstack_zone.rb: Could not autoload /var/lib/puppet/lib/puppet/provider/cloudstack_zone/default.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/provider/cloudstack.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/cloudstack.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/num2bool.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/str2saltedsha512.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/size.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/type/cloudstack_security_group.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/type/cloudstack_security_group.rb: Could not autoload /var/lib/puppet/lib/puppet/provider/cloudstack_security_group/default.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/lstrip.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/validate_bool.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/is_function_available.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/prefix.rb info: Loading downloaded plugin /var/lib/puppet/lib/facter/pkgng.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet_x/cloudstack/transport.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet_x/cloudstack/transport.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/str2bool.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/reverse.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/any2array.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/validate_absolute_path.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/shuffle.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/is_ip_address.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/provider/cloudstack_image/default.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/cloudstack_image/default.rb: no such file to load -- fog info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/validate_slength.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/parser/functions/getparam.rb info: Loading downloaded plugin /var/lib/puppet/lib/puppet/provider/cloudstack_instance/default.rb err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/cloudstack_instance/default.rb: /var/lib/puppet/lib/puppet/provider/cloudstack_instance/default.rb:72: syntax error, unexpected ')' /var/lib/puppet/lib/puppet/provider/cloudstack_instance/default.rb:124: syntax error, unexpected $end, expecting kEND info: Loading downloaded plugin /var/lib/puppet/lib/facter/localbase.rb info: Loading
[Puppet Users] cloudstack instance creation hostname
Hello, I am attempting to use that cloudstack_resources module found here https://github.com/bodepd/cloudstack_resources I have been able to succesfully point it to my cloudstack management server and create VMs. The template I am using is a fresh OS install that already had puppet agent configure and running on it. The problem is, I dont see a way to name my cloudstack instances, so they end up with the name being set to the ID, (display name does seem to be correct). This means I end up with a bunch of certs that have different names in my puppetmasters cert list that dont mean anything to me. Am I doing this right? Should I be using cloudstack_instance to somehow set the machines cloudstack name and/or the hostname of the VM instance? I also notice it seems like there is a puppet_node type in the cloudstack_resources project, but I could not find any documentation on how to us it. Should I be using this with a plain OS template (no puppet pre-installed?) If so, how does that get used? Thanks -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/641c5268-c064-46ce-be82-b9a1bfd83885%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] cloudstack_resources not working as expected
Hello, I have cloned the cloudstack_resources git repo into my puppet modules directory. I have a working cloudstack management server up and going. here is my modules/infra/manifests/init.pp file class infra { cloudstack_instance { 'foo': ensure=present, flavor = 'Small Instance', zone = 'ash-dev-xs-zone', image = 'FreeBSD10 Puppet Install', group ='role=transit', } } here is my site.pp node 'dev.mydomain.local' {include infra } where dev.mydomain.local is the hostname of my puppetmaster box. And here is the error I get when I 'puppet apply site.pp' on my puppetmaster box Any help is appreciated. Error trace follows Thanks! Debug: Prefetching default resources for cloudstack_instance Error: Could not prefetch cloudstack_instance provider 'default': undefined method `[]' for nil:NilClass /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:11:in `instances' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:15:in `prefetch' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:264:in `prefetch' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `prefetch_if_necessary' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:62:in `block in evaluate' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `call' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `traverse' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply' /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in `apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run' /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run' /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute' /usr/bin/puppet:4:in `main' Error: Could not set 'present' on ensure: undefined method `[]' for nil:NilClass at 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in `connection' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in `get_id_from_model' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in `get_flavor_id' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in `create' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues' /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod' /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set' /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in `apply_parameter' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:55:in `perform_changes' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:138:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:161:in `apply' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `eval_resource' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `call'
[Puppet Users] Re: cloudstack_resources not working as expected
Well apparently my transport.yaml file was not formatted correcly. I had everything starting at column zero, and when I added a tab to make the spacing for the lines under cloudstack: be indented, it worked. :shrug: On Wednesday, November 20, 2013 12:22:11 PM UTC-5, Derek Cole wrote: Hello, I have cloned the cloudstack_resources git repo into my puppet modules directory. I have a working cloudstack management server up and going. here is my modules/infra/manifests/init.pp file class infra { cloudstack_instance { 'foo': ensure=present, flavor = 'Small Instance', zone = 'ash-dev-xs-zone', image = 'FreeBSD10 Puppet Install', group ='role=transit', } } here is my site.pp node 'dev.mydomain.local' {include infra } where dev.mydomain.local is the hostname of my puppetmaster box. And here is the error I get when I 'puppet apply site.pp' on my puppetmaster box Any help is appreciated. Error trace follows Thanks! Debug: Prefetching default resources for cloudstack_instance Error: Could not prefetch cloudstack_instance provider 'default': undefined method `[]' for nil:NilClass /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:11:in `instances' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:15:in `prefetch' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:264:in `prefetch' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:154:in `prefetch_if_necessary' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:62:in `block in evaluate' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `call' /usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:116:in `traverse' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:95:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:164:in `block in apply' /usr/lib/ruby/vendor_ruby/puppet/util/log.rb:147:in `with_destination' /usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:108:in `as_logging_destination' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:163:in `apply' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:125:in `block in apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/util.rb:182:in `block in benchmark' /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /usr/lib/ruby/vendor_ruby/puppet/util.rb:181:in `benchmark' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:124:in `apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:190:in `run' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:273:in `apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:223:in `main' /usr/lib/ruby/vendor_ruby/puppet/application/apply.rb:151:in `run_command' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run' /usr/lib/ruby/vendor_ruby/puppet/application.rb:457:in `plugin_hook' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run' /usr/lib/ruby/vendor_ruby/puppet/util.rb:511:in `exit_on_fail' /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute' /usr/bin/puppet:4:in `main' Error: Could not set 'present' on ensure: undefined method `[]' for nil:NilClass at 8:/work/ac/tools/puppet/dev-puppetmaster/modules/infra/manifests/init.pp /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet_x/cloudstack/transport.rb:24:in `retrieve' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:27:in `connection' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:31:in `connection' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack.rb:52:in `get_id_from_model' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:96:in `get_flavor_id' /work/ac/tools/puppet/dev-puppetmaster/modules/cloudstack_resources/lib/puppet/provider/cloudstack_instance/default.rb:41:in `create' /usr/lib/ruby/vendor_ruby/puppet/property/ensure.rb:16:in `block in defaultvalues' /usr/lib/ruby/vendor_ruby/puppet/property.rb:197:in `call_valuemethod' /usr/lib/ruby/vendor_ruby/puppet/property.rb:498:in `set' /usr/lib/ruby/vendor_ruby/puppet/property.rb:581:in `sync' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:113:in `apply_parameter' /usr/lib/ruby
[Puppet Users] How to determine puppet environment when using passenger
Hello, I am trying to figure out what the best way to use puppet when I am using passenger. I noticed that if I log in as my normal user on Ubuntu 12.04, and run puppet config print it gives me the incorrect configuration than what I think I am running when I am using apache/passenger/puppet For example, it shows my confdir as being in my users homedir/.puppet instead of /etc/puppet When i log in as root, and run the command, everything looks correct. Am I just supposed to work in root all the time when I am running puppet's commands? I noticed this is also a problem when I am having a custom modulepath..if I run puppet install module as a user, it puts it in my home dir, instead of in the configured modulepath i have in my puppet.conf Please advise - Thanks! -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/589c9a47-3318-46ee-94e4-85c286fec780%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] New to Puppet, trying to get it workign with a FreeBSD agent
Hello, I have been following through some of the documentation trying to make use of puppet in a test environment. I went ahead and tried to install puppet-passenger and puppet dashboard. I think i have succesfully done this, because at mymaster.local:3000/ I get the dashboard webpage (albeit with no nodes or anything reporting) and at https://mymaster.local:8140 I get a cert trying to be served to my browser. Are these good indicators of something at least working? On my pupper master box, which is Ubuntu, here is what /etc/puppet/puppet.conf contains [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter templatedir=$confdir/templates [master] # These are needed when the puppetmaster is run by passenger # and can safely be removed if webrick is used. reports = store, http reporturl = http://mymaster.local:3000/reports/upload ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY and in the master's etc/hosts there is a reference to the agent, so it can ping it by name. and as of right now, i only have one FreeBSD puppet client. In it's /usr/local/etc/puppet/puppet.conf [agent] server = mymaster report = true pluginsync = true and its hosts file has mymaster, so I can ping it by name. However, on my agent, if i type puppet agent -t I get the following: Error: Could not request certificate: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: (null) Exiting; failed to retrieve certificate and waitforcert is disabled I tried this with the -w option, and did sudo puppet cert list on the master, but i never saw anything show up. What am I missing here? Can someone point me to some better documentation? It seemed like what I read was lacking a bit, especially for the agent setup in the FreeBSD box. Thanks! -- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.