[Puppet Users] SSL Cert's are generated but not saved

2015-09-02 Thread Michael Holt
Hi,

I'm working on using puppet to manage a fleet of Mac's.  I have run the 
puppet in the background while at the mac login window after 
/etc/puppet/puppet.conf is configured.

puppet.conf:
[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
pluginsync=true

[agent]
##This is managed by puppet
server=puppetserverurl
certname=c02n5heug3qj
report=true
pluginsync=true
environment=macs

Puppet Agent command:
sudo /usr/bin/puppet agent --detailed-exitcodes --onetime --no-daemonize 
--verbose --environment macs --waitforcert 20

it is run by a LaunchDaemon.  It runs sucessfully once and my settings are 
applied but the SSL certs are not saved in /etc/puppet/ssl

I've been looking all over and can't find anyone with this issue.  Does 
anyone have any pointers?

-- 
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/0cbfe44c-7662-483b-b855-e015acb3a0db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] vhosts with multiple ip addresses with apache Forge Module

2015-09-02 Thread Trevor Vaughan
Looks like that is, indeed, a bug.

I would file a bug report over at
https://tickets.puppetlabs.com/browse/MODULES/

Trevor

On Wed, Sep 2, 2015 at 10:17 AM,  wrote:

> Hello,
>
> within the last project, I recognized that there is no way to generate one
> vhost with more than one ip address with the apache module of puppetlabs
> Forge Modules.
>
> Am I wrong? Or is there a good reason that it doesn't work?
>
> --
> 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/3a2dd027-e5e0-495e-b010-898c08bba609%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

-- This account not approved for unencrypted proprietary information --

-- 
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/CANs%2BFoVVBXM%3D791LEf87EhATOv%3DkPhJ959GjnpajmL5S6mGShg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] rabbitmq module (5.2.3) - puppet 2.7.26 - Could not autoload rabbitmq_erlang_cookie undefined method `has_command'

2015-09-02 Thread kdo
Hello all,

wondering whether anyone may have come across this issue before. The module 
works if clustering is set to false. We however require clustering to be 
setup so would like to get this working if possible. I haven't read that 
master 2.7 is not supported with version of puppetlabs rabbitmq module 
(5.2.3) 

err: Failed to apply catalog: Could not autoload rabbitmq_erlang_cookie: 
Could not autoload 
/var/lib/puppet/lib/puppet/provider/rabbitmq_erlang_cookie/ruby.rb: 
undefined method `has_command' for 
Puppet::Type::Rabbitmq_erlang_cookie::ProviderRuby:Class

some of our settings in param.pp

  config_cluster   => true,
  cluster_nodes=> ['host1', 'host2'],
  cluster_node_type=> 'ram',
  erlang_cookie=> 'A_SECRET_COOKIE_STRING',
  wipe_db_on_cookie_change => true,


thanks in advance

-- 
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/9f4937cc-e8f3-4307-9082-7d7b1df109d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Managing Chocolatey sources with File resource and Template on Windows 7 x64 SP1

2015-09-02 Thread Rob Reynolds
On Tue, Sep 1, 2015 at 7:50 AM, jmp242  wrote:

> So I'm using Puppet 3.8.1 on Windows 7 x64 and managing a configuration
> file using a template.
> file { 'chocolatey.config':
> path=> "C:/ProgramData/chocolatey/config/chocolatey.config",
> content => template('yum/chocolatey.config.erb'),
> owner   => 'SYSTEM',
> group   => 'Administrators',
> mode=> '0775',
> ensure  => present,
> require => Exec['chocolatelyinstall'],
>   }
>
> The template file grabs values from a foreman parameter:
> 
> http://www.w3.org/2001/XMLSchema; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance;>
>   
>   true
>   2700
>   
> https://chocolatey.org/api/v2/;
> disabled="true" />
>  disabled="false" />
>   
>   
> 
> 
>  "false" />
>   
>   
> 
>
>
> Every time it runs, even one manual run right after another, it changes
> the file from one hash to a different one, always the same 2 hashes, and
> the contents of the file (text) are the same each time. I also get a
> FileBucket got a duplicate file each time.
> Notice: /Stage[main]/Yum/File[chocolatey.config]/content:
>
>
>
> Info: Computing checksum on file C:/ProgramData/chocolatey/config/
> chocolatey.con
> fig
>
> Info: FileBucket got a duplicate file {md5}eedc18d21cf625bb6c04902e8a9dd409
>
> Info: /Stage[main]/Yum/File[chocolatey.config]: Filebucketed C:
> /ProgramData/choc
> olatey/config/chocolatey.config to puppet with sum
> eedc18d21cf625bb6c04902e8a9dd
> 409
>
> Notice: /Stage[main]/Yum/File[chocolatey.config]/content: content changed
> '{md5}
> eedc18d21cf625bb6c04902e8a9dd409' to
> '{md5}4efbb2600ee773122152faec7ae80934'
>
> Any idea WTH is going on?
>

At first I thought it might be related to PUP-927[1], but that was "fixed"
in 3.8.0. It appears that maybe it is similar to that or the fix in 3.8.0
was not enough. Is the Puppet version you have installed x86 or x64?

[1] https://tickets.puppetlabs.com/browse/PUP-927


>
>
>
> --
> 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/b51075e6-422b-4614-88db-787618d89e6e%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*PuppetConf 2015  is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Final Countdown discount

*
*—**save $149!*

-- 
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/CAMJiBK4Ui84C%3DzSum0Njau_DSNbxe3N2z_V-BRfMKjp9%3DR_FbA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppet vagrant error

2015-09-02 Thread peter grant
Hi All,

Trying to bootstrap a puppetmaster with nginx using vagrant. I'm coming 
across this error.

Anyone able to provide any insight into this for me?

==> puppetmaster: Notice: 
/Stage[main]/Nginx::Config/File[/etc/nginx/sites-enabled]/ensure: created

==> puppetmaster: Error: Could not back up /etc/nginx/nginx.conf: Could not 
find terminus file for indirection file_bucket_file

==> puppetmaster: Error: Could not back up /etc/nginx/nginx.conf: Could not 
find terminus file for indirection file_bucket_file

==> puppetmaster: Error: 
/Stage[main]/Nginx::Config/File[/etc/nginx/nginx.conf]/content: change from 
{md5}f7984934bd6cab883e1f33d5129834bb to 
{md5}9c503121f486f0e4ed28f2f91c5876c7 failed: Could not back up 
/etc/nginx/nginx.conf: Could not find terminus file for indirection 
file_bucket_file

==> puppetmaster: Error: Could not back up /etc/nginx/conf.d/default.conf: 
Could not find terminus file for indirection file_bucket_file

==> puppetmaster: Error: Could not back up /etc/nginx/conf.d/default.conf: 
Could not find terminus file for indirection file_bucket_file

==> puppetmaster: Error: 
/Stage[main]/Nginx::Config/File[/etc/nginx/conf.d/default.conf]/ensure: 
change from file to absent failed: Could not back up 
/etc/nginx/conf.d/default.conf: Could not find terminus file for 
indirection file_bucket_file

==> puppetmaster: Error: Could not back up 
/etc/nginx/conf.d/example_ssl.conf: Could not find terminus file for 
indirection file_bucket_file

==> puppetmaster: Error: Could not back up 
/etc/nginx/conf.d/example_ssl.conf: Could not find terminus file for 
indirection file_bucket_file

==> puppetmaster: Error: 
/Stage[main]/Nginx::Config/File[/etc/nginx/conf.d/example_ssl.conf]/ensure: 
change from file to absent failed: Could not back up 
/etc/nginx/conf.d/example_ssl.conf: Could not find terminus file for 
indirection file_bucket_file

==> puppetmaster: Error: /Stage[main]/Nginx::Config/File[/tmp/nginx.d]: 
Failed to generate additional resources using 'eval_generate': Could not 
find terminus file for indirection file_metadata

==> puppetmaster: Error: 
/Stage[main]/Nginx::Config/File[/tmp/nginx.mail.d]: Failed to generate 
additional resources using 'eval_generate': Could not find terminus file 
for indirection file_metadata

==> puppetmaster: Notice: /Stage[main]/Nginx::Service/Service[nginx]: 
Dependency File[/etc/nginx/nginx.conf] has failures: true

==> puppetmaster: Notice: /Stage[main]/Nginx::Service/Service[nginx]: 
Dependency File[/etc/nginx/conf.d/default.conf] has failures: true

==> puppetmaster: Notice: /Stage[main]/Nginx::Service/Service[nginx]: 
Dependency File[/etc/nginx/conf.d/example_ssl.conf] has failures: true

==> puppetmaster: Warning: /Stage[main]/Nginx::Service/Service[nginx]: 
Skipping because of failed dependencies

==> puppetmaster: Notice: /Stage[main]/Nginx/Anchor[nginx::end]: Dependency 
File[/etc/nginx/nginx.conf] has failures: true

==> puppetmaster: Notice: /Stage[main]/Nginx/Anchor[nginx::end]: Dependency 
File[/etc/nginx/conf.d/default.conf] has failures: true

==> puppetmaster: Notice: /Stage[main]/Nginx/Anchor[nginx::end]: Dependency 
File[/etc/nginx/conf.d/example_ssl.conf] has failures: true

==> puppetmaster: Warning: /Stage[main]/Nginx/Anchor[nginx::end]: Skipping 
because of failed dependencies

==> puppetmaster: Notice: Applied catalog in 89.28 seconds

==> puppetmaster: Warning: No report named 'store'

The SSH command responded with a non-zero exit status. Vagrant

assumes that this means the command failed. The output for this command

should be in the log above. Please read the output to determine what

went wrong.


Many Thanks,
Peter.



-- 
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/03543927-61ef-4121-a301-0d9a3f966b77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppetboard : PuppetDB not available Error

2015-09-02 Thread David Levray
netstat -laputen | grep  8080   ??


Le mardi 1 septembre 2015 19:39:40 UTC+2, Gopal Reddy a écrit :
>
> Hi,
>
> I am trying to configure puppetboard in my environment. We are using 
> opensource puppet.
>
> Have a Seperate Puppet master, Postgres, puppetDB+puppetboard.
>
> ERROR
> =
> Internal Server Error
>
> This error usually occurs because:
>
>- We were unable to reach PuppetDB;
>- The query to be executed was malformed resulting in an incorrectly 
>encoded request.
>
> Please have a look at the log output for further information.
>
>
> Below is what I am doing.
>
> Installed puppetboard using "pip install pythonboard"
>
> settings.py
> cat settings.py
> PUPPETDB_HOST = 'sjc-it-pdb001.mydomain.com'
> PUPPETDB_PORT = 8080
> #PUPPETDB_SSL_VERIFY = /etc/puppetdb/ssl/ca.pem
> #PUPPETDB_KEY = /etc/puppetdb/ssl/private.pem
> #PUPPETDB_CERT = /etc/puppetdb/ssl/public.pem
> PUPPETDB_TIMEOUT = 20
> DEV_LISTEN_HOST = '127.0.0.1'
> DEV_LISTEN_PORT = 5000
> UNRESPONSIVE_HOURS = 2
> ENABLE_QUERY = True
> LOGLEVEL = 'info'
>
> Apache Configuration File
> =
> 
> ServerName sjc-it-pdb001.mydomain.com
> WSGIDaemonProcess puppetboard user=apache group=apache threads=5
> WSGIScriptAlias / /var/www/puppetboard/wsgi.py
> ErrorLog /var/log/httpd/puppetboard.error.log
> CustomLog /var/log/httpd/puppetboard.access.log combined
>
> Alias /static /usr/lib/python2.7/site-packages/puppetboard/static
> 
> Satisfy Any
> Allow from all
> 
>
> 
> WSGIProcessGroup puppetboard
> WSGIApplicationGroup %{GLOBAL}
> Require all granted
> 
> 
>
>
>

-- 
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/46936b67-0e89-4f9b-bbb7-6e00896ca642%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-02 Thread David Levray
Hello,

please :
cat hiera.yaml
puppet module list
puppet module list --environment xxx   (xx = environment your node)

ty

Le samedi 29 août 2015 06:31:29 UTC+2, Alfredo De Luca a écrit :
>
> Hi all. 
> Using Puppet open source  3.8  with hiera for test purpose. 
>
> I installed puppetlabs-postgresql from forge but when on my puppet 
> client yaml I use postgresql I got the following error: 
>
>
> Error: Could not retrieve catalog from remote server: Error 400 on 
> SERVER: Could not find class postgresql for puppet-sql.alflab.net on 
> node puppet-sql.alflab.net 
>
>
> Any clue why? 
>
> Here is the yaml file 
>
> --- 
> classes: 
>   - sudo 
>   - selinux 
>   - postgresql 
>
> All the rest is working just fine. Also I tried puppetlabs-mysql but 
> same error. 
>
> Regards 
>
> -- 
> Alfredo 
>

-- 
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/9835033d-4c83-4e53-b604-cf316c9239e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] vhosts with multiple ip addresses with apache Forge Module

2015-09-02 Thread benediktb1992
Hello,

within the last project, I recognized that there is no way to generate one 
vhost with more than one ip address with the apache module of puppetlabs 
Forge Modules.

Am I wrong? Or is there a good reason that it doesn't work?

-- 
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/3a2dd027-e5e0-495e-b010-898c08bba609%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.