Re: [Puppet Users] Style - hiera/params/puppet/template

2014-09-01 Thread Sirtaj Singh Kang


On Monday 01 September 2014 05:39 AM, Atom Powers wrote:
Poli, that doesn't really solve the problem since the variable values 
could still come from many places. (Puppet also does some of that 
lookup automatically, although not as deep.)


Yes, though my primary goal is simply to reduce unnecessary duplication. 
A single added configurable template parameter currently ends up being 
in three places even before bringing in hiera, which is

pretty bad.

This whole thing was brought about by my writing parameterized classes 
for some of our
internal custom services that have dozens of options in their config 
templates, and the manifest file is just

a sea of parameter names.

I think I'm just going to start putting defaults in the class 
declaration param list unless they explicitly

require logic to compute, in which case they'll come from the params.



This may be relevant:
https://github.com/ripienaar/puppet-module-data/


This looks really cool! Thanks for the reference.

-Taj.

--
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/54041A92.1020708%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] User management

2014-09-01 Thread Gregory Orange

On 22/08/14 02:45, Garrett Honeycutt wrote:

Here[1] is the code that I use to manage local users. You could use it
for your scenario by placing users in different levels in Hiera and
keying off the profile.


Thanks, I'll give that idea a try and see if it works out any better for 
this setup.


Cheers,
Greg.

--
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/54041FCD.4040905%40calorieking.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] erb tempate issue

2014-09-01 Thread Juan Sierra Pons
Hi

I am creating a module to populate a file. The result should be like this:

uri ldap://10.10.10.1 ldap://10.10.10.2 ldap://10.10.10.3

To achieve this I am using an array with the IPs declared on the
ldap_servers array and the following erb template:

uri <% if !@ldap_servers.empty? -%>
ldap://<%= @ldap_servers %>
<% end -%>

The ouput I get is like this:

uri ldap://10.10.10.1ldap://10.10.10.2lado://10.10.10.3

Without the space between the ips.

I have also tried this (with no success):

uri <% if !@ldap_servers.empty? -%>
ldap://<%= @ldap_servers %> <%= %>
<% end -%>

I think this is an easy one but after several tries I have decided to ask here.

Thank you for your time

Best regards

--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--

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


Re: [Puppet Users] erb tempate issue

2014-09-01 Thread Martin Alfke
Hi.
On 01 Sep 2014, at 11:46, Juan Sierra Pons  wrote:

> Hi
> 
> I am creating a module to populate a file. The result should be like this:
> 
> uri ldap://10.10.10.1 ldap://10.10.10.2 ldap://10.10.10.3
> 
> To achieve this I am using an array with the IPs declared on the
> ldap_servers array and the following erb template:
> 
> uri <% if !@ldap_servers.empty? -%>
> ldap://<%= @ldap_servers %>
> <% end -%>

Just add a space in front of ldap://<%= 

> 
> The ouput I get is like this:
> 
> uri ldap://10.10.10.1ldap://10.10.10.2lado://10.10.10.3
> 
> Without the space between the ips.
> 
> I have also tried this (with no success):
> 
> uri <% if !@ldap_servers.empty? -%>
> ldap://<%= @ldap_servers %> <%= %>
> <% end -%>
> 
> I think this is an easy one but after several tries I have decided to ask 
> here.
> 
> Thank you for your time
> 
> Best regards
> 
> --
> Juan Sierra Pons j...@elsotanillo.net
> Linux User Registered: #257202
> Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
> GPG key = 0xA110F4FE
> Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
> --
> 
> -- 
> 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/CABS%3Dy9uyA_pwZdbgxa0m2x4K0uVWybR_YWpy6_1ACe1oQf7n1g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/F0EEA439-FA75-4FB8-AEA6-943476198B3E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] erb tempate issue

2014-09-01 Thread Juan Sierra Pons
>
> Just add a space in front of ldap://<%= 
>


Hi

I have tried this before but I get and extra espace between uri and ldap

uri  ldap://http://10.10.10.1http://10.10.10.2http://10.10.10.2

Thank you for your time
--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--

-- 
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/CABS%3Dy9u3-ik206G1qa0ZZM8wPKGvTUfar4DsmQGXGz4zphQYvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] create_resources with default parameters on top of yaml for onetime usage

2014-09-01 Thread yamakasi . 014
Hi guys,

I'm looking for a solution to svn checkout a branch and directly config the 
branch modules using create_resources.

My yaml would look like this I think for a one time checkout, which will 
grab all the modules and configure them one by one:


svnsource:
  repourl:
  branch: 
  copydir: 
  repo: 
  username: 
  password:
   modules: 
   mymodule1:
 servername:
 database:
 username:
 password:
mymodule2:
 servername:
 database:
 username:
 password:
mymodule2:
 servername:
 database:
 username:
 password:

How can I do this ? it seems that default or merge doesn't do what I need 
here.

Thanks,

Matt

-- 
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/c8c12465-95ec-417a-8499-5cb7a82e6b73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] erb tempate issue

2014-09-01 Thread Martin Alfke
Remove the space after uri and add the space in front of ldap://...

On 01 Sep 2014, at 11:53, Juan Sierra Pons  wrote:

>> 
>> Just add a space in front of ldap://<%= 
>> 
> 
> 
> Hi
> 
> I have tried this before but I get and extra espace between uri and ldap
> 
> uri  ldap://http://10.10.10.1http://10.10.10.2http://10.10.10.2
> 
> Thank you for your time
> --
> Juan Sierra Pons j...@elsotanillo.net
> Linux User Registered: #257202
> Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
> GPG key = 0xA110F4FE
> Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
> --
> 
> -- 
> 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/CABS%3Dy9u3-ik206G1qa0ZZM8wPKGvTUfar4DsmQGXGz4zphQYvw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/14DE1554-A165-443D-90C3-569D0B10BA11%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] erb tempate issue

2014-09-01 Thread Juan Sierra Pons
Hi

Finally I have changed to another kind on loop that works for my case

uri<% @ldap_servers.each do |server| -%>
 ldap://<%= server -%>
<% end %>

Thank you for your time

Best regards

--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202
Web: http://www.elsotanillo.net Git: http://www.github.com/juasiepo
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--

-- 
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/CABS%3Dy9svBfBfX7si%2BydWV7Cc5ME9LR%3DLfM86egwmaMpo2qGB%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Switching modules files dynamicaly

2014-09-01 Thread Guy Meler
Hey!
I Need to swap modules dynamically on my puppet masters.

Is there a healthy way to do so?
I'm afraid that I will swap a file during a catalog compilation and it just 
seems wrong.

My thought was to stop the puppet master service every time, but it is kind 
of messed up.
Is there any lock file or any other way I can tell a master to stop 
processing new compilations?

My environment:
8 puppet masters, using puppetdb and heira with couchDB backend. (If this 
matters somehow)

-- 
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/890bdcb4-2dc3-4e04-99f6-eb8ec6142075%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Remote Puppet-dashboard ENC

2014-09-01 Thread Joe Sanoh


How do you configure ENC on a remote puppet-dashboard?

node_terminus = exec 
external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 
remote-dashboard /usr/share/puppet-dashboard/bin/external_node


How do I configure tihs part:: remote-dashboard 
/usr/share/puppet-dashboard/bin/external_node


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/635d9ac4-bdcd-42dd-b7cc-d9bfc7ef21c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] More than one array passed to a definition

2014-09-01 Thread Fran Rodríguez
Thank you very much for the answer Nan, ive used your first option... ;), 
and works.

Cheers.

On Friday, 29 August 2014 19:35:38 UTC+2, Nan Liu wrote:
>
> Puppet array expansion of resources titles doesn't perform any expansion 
> for resource properties. There might be another way in experimental parser, 
> but here's two options. 
>
> 1. structure the data so you can pass it to create_resource:
> $hash_of_resources = { 'name1' => { 'port' => 'port1'}, 'name2' => { 
> 'port' => 'port2' } }
> create_resource('instance', $hash_of_resources)
>
> 2. Modify the define type to lookup the value within a hash with the 
> resource title as the key:
> # change define type to look up port value via resource name as hash key
> # do not specify $name as a variable, it's implicit
> define instances ( $port ) {
>$port_file = $port[$name]
>file { "${name}":
>ensure => present,
>path => "/path/${port_file}"
>}
> }
>
> $array1 = ['name1', 'name2']
> $array2 = ['port1', 'port2']
>
> # this makes it [ ['name1', 'port1'], ['name2', 'port2'] ]
> $zip = zip($array1, $array2)
>
> # I can't find a to_hash function in stdlib, but essentially a hideous way 
> to generate: { 'name1' => 'port1', 'name2' => 'port2' }
> $port = parseyaml(inline_template("<%= Hash[*@zip.flatten(1)].to_yaml %>"))
>
> instances { $array1:
>   port => $port,
> }
>
> HTH,
>
> Nan
>  
>   Fran Rodríguez 
>  August 29, 2014 at 4:40 AM
> Hi group,
>
> Im trying to do something with to arrays:
>
> array1 = ['name1', 'name2']
> array2 = ['port1', 'port2']
>
> The arrays has the same number of elements and what i want to do it is 
> passing to a define function:
>
> instances { $array1:; $array2:; }
>
> The instances define does something simple:
>
> define instances ( $name, $port ) {
>file { "${name}":
>ensure => present,
>path => "/path/${port}"
>}
> }
>
> I thing im missing something about iteration with define function because 
> puppet say:
>
> Error 400 on SERVER: Must pass name to Instances[name1]
>
> Could somebody tell me what im doing wrong or point to me in the correct 
> direction?¿ 
>
> Thanks and cheers
> -- 
> 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...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/1d39746a-dc24-4584-b640-35a96fe1e8af%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>  
> 

-- 
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/0940cfc2-d701-4e0d-8f68-ecef3b86bb95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] windows mount points

2014-09-01 Thread Benjamin Priestman
Hi,

On windows hosts, I've taken to putting all my app data in c:\srv, mimicing the 
/srv location on Linux. Depending on the host, this may be a location on the 
system drive, or it is sometimes an additional disk mounted at that location. 
In the latter case, `puppet resource file ` shows this as a link whose target 
is the underlying volume.

An attempt to define a file resource within this location fails with:
'Parent directory C:/srv does not exist'
If I create subdirectories here by hand, the puppet run proceeds just fine. Has 
anyone else come across this behavior?

I'm running puppet 3.4.2 at the moment. Happy to upgrade but I can't find any 
big reports that indicate this is a known issue.

-- 
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/bc4867e4-4bf6-44a8-900c-1690512db21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Permission problems on Windows

2014-09-01 Thread Armindo Silva
Hi,

I have a zip file that has some binaries inside, if I unzip it (with 7z) 
manually and try to run one of the binaries and it just works, if I unzip 
it using puppet agent:

  exec { 'eMZP':
command => 'cmd /c 7z x c:\myfolder\my.zip -oc:\myfolder\',
creates => 'c:/myfolder/mybin.exe',
require => File['c:/myfolder/my.zip'],
  }

the unziped files don't have exec permissions so I am not able to run them. 
As workaround I have been setting the folder's mode but setting the mode on 
windows is deprecated.

Any ideas/pointers?

Best regards,
Armindo

-- 
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/32d3a423-9307-4beb-b423-7ff9f0d35b77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: How to handle java home in module?

2014-09-01 Thread Corey Osman
Basically you should be creating an init script for each java application 
that you start.  It should be the responsibility of that init script to set 
the JAVA_HOME/JAVA_BIN variables.  With this in mind you shouldn't need to 
worry about facts or different JAVA_HOME variables since the init script 
will set this explicitly for each java application you run.  You would want 
to have a java_home or java_bin puppet parameter in your class/define so 
that you can change java versions in hiera for a specific 
node/environment/datacenter.   If you want a "default" version that is the 
only reason I would see for setting JAVA_HOME in your bash_profile.
Have a look at java service wrappers to help automate that init script 
creation.  (This is what jenkins, puppetdb, and many others use).



Corey  

On Wednesday, July 2, 2014 3:06:46 AM UTC-7, Gavin Williams wrote:
>
> Morning all
>
> I'm currently working on a module[1] to support installation and 
> configuration of Apache Karaf[2], a Java OSGi container... 
>
> I've got most of the installation piece sorted, and am starting to work on 
> the configuration side of things. 
> Unfortunately I've hit a bit of a blocker which I'm not sure of the best 
> way to work-around. 
>
> As part of the service installation process, a Java wrapper config file is 
> created. 
> This config file needs to be modified to specify the 'JAVA_HOME' value. 
> However I'm not sure of the best way to calculate this JAVA_HOME value, due 
> to the variable nature of both Java variants (Java 6 vs 7, Oracle vs 
> OpenJDK, release version) and the fact that Java might not be installed at 
> the start of the Puppet run. 
> The intention is to use a template for the config file, so it's modifiable 
> by Puppet. 
>
> Options I can think of: 
>
>1. Use a fact to provide JAVA_HOME. This fails if Java isn't installed 
>at the start of the agent run, which is a valid scenario if this module is 
>also installing Java... 
>2. Hard code the value based on a pre-determined file path based on 
>chosen Java distro and version. Not very clean/configurable...
>3. Update wrapper config file to pull in system env for JAVA_HOME. 
>However this fails if the system version isn't the one that the app should 
>use... 
>
> Am I missing a trick somewhere along the lines, or is hoping to achieve 
> all this - Install Java, Install Karaf, configure Karaf service - in one 
> run asking too much? 
>
> Thoughts/ideas welcome. 
>
> Cheers
> Gavin
>
> [1] https://github.com/fatmcgav/fatmcgav-karaf/tree/develop
> [2] http://karaf.apache.org/index.html
>

-- 
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/9ae083e2-7e5e-47c1-ab99-7f21a114f750%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] windows mount points

2014-09-01 Thread Jim Ficarra

Have you declared the folder before the file resource? Something like this:

file {'c:/srv':
   ensure => 'directory',
}

file {'c:/srv/newfile':
   ensure=> 'file',
   source=> 'puppet:///modules/mymodule/myfile.txt',
   require=> File['c:/srv'],
}

It's not clear what the source of your file is so as part of the example I 
arbitrarily specified it coming from the files folder from puppet.  The key 
take-away item is to declare the folder and ensure that the file resource(s) 
are dependent on the folder being there regardless of your choice of 
chaining and ordering syntax you choose, variables, et.


Hope that helps.

-Jim

-Original Message- 
From: Benjamin Priestman

Sent: Monday, September 01, 2014 1:00 PM
To: puppet-users@googlegroups.com
Subject: [Puppet Users] windows mount points

Hi,

On windows hosts, I've taken to putting all my app data in c:\srv, mimicing 
the /srv location on Linux. Depending on the host, this may be a location on 
the system drive, or it is sometimes an additional disk mounted at that 
location. In the latter case, `puppet resource file ` shows this as a link 
whose target is the underlying volume.


An attempt to define a file resource within this location fails with:
'Parent directory C:/srv does not exist'
If I create subdirectories here by hand, the puppet run proceeds just fine. 
Has anyone else come across this behavior?


I'm running puppet 3.4.2 at the moment. Happy to upgrade but I can't find 
any big reports that indicate this is a known issue.


--
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/bc4867e4-4bf6-44a8-900c-1690512db21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout. 


--
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/7D69BADFB2484A869FA9439E60A6A256%40JimHPPavilionG6.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] windows mount points

2014-09-01 Thread Jim Ficarra
whoops - disregard - I re-read and missed that the latter case was a linked 
location.




-Original Message- 
From: Jim Ficarra

Sent: Monday, September 01, 2014 2:59 PM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] windows mount points

Have you declared the folder before the file resource? Something like this:

file {'c:/srv':
   ensure => 'directory',
}

file {'c:/srv/newfile':
   ensure=> 'file',
   source=> 'puppet:///modules/mymodule/myfile.txt',
   require=> File['c:/srv'],
}

It's not clear what the source of your file is so as part of the example I
arbitrarily specified it coming from the files folder from puppet.  The key
take-away item is to declare the folder and ensure that the file resource(s)
are dependent on the folder being there regardless of your choice of
chaining and ordering syntax you choose, variables, et.

Hope that helps.

-Jim

-Original Message- 
From: Benjamin Priestman

Sent: Monday, September 01, 2014 1:00 PM
To: puppet-users@googlegroups.com
Subject: [Puppet Users] windows mount points

Hi,

On windows hosts, I've taken to putting all my app data in c:\srv, mimicing
the /srv location on Linux. Depending on the host, this may be a location on
the system drive, or it is sometimes an additional disk mounted at that
location. In the latter case, `puppet resource file ` shows this as a link
whose target is the underlying volume.

An attempt to define a file resource within this location fails with:
'Parent directory C:/srv does not exist'
If I create subdirectories here by hand, the puppet run proceeds just fine.
Has anyone else come across this behavior?

I'm running puppet 3.4.2 at the moment. Happy to upgrade but I can't find
any big reports that indicate this is a known issue.

--
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/bc4867e4-4bf6-44a8-900c-1690512db21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/420E8EC5F392412FAD140B31DA3D711A%40JimHPPavilionG6.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Good PupptMaster/Passenger Guide w OSX 10 .9

2014-09-01 Thread keith . staley


On Thursday, August 28, 2014 9:53:41 PM UTC-4, keith@gmail.com wrote:
>
>
>
> On Tuesday, August 26, 2014 7:23:45 PM UTC-4, keith@gmail.com wrote:
>>
>> HI guys;
>>
>>  after speaking with puppet labs and gettting the pricing for my site, I 
>> thought it maybe cheaper ot go open spurce. so I am asking for a good guide 
>> you guys have used the following:
>>
>>
>> http://nullr0ute.com/2014/01/puppetmaster-on-apache-with-passenger-in-5-mins/
>>
>> http://www.6tech.org/2013/01/how-to-install-puppet-open-source-on-centos-6-3/
>> http://darktraining.com/linux/105/
>> http://www.unixmen.com/install-puppet-server-centos-6-56-4/
>>
>> all have given my the dreaed ruby error. I hav eupdated the agent nodes 
>> to the latest version of puppet/factor/hiera, but still get the error, I 
>> have installed via RVM ruby 2.0, 2.1.2, and have seen passenger not running 
>> ( passenger-status) and still get the ruby message from the clients.
>>
>> so I am asking for  a little help and any links you guys can recommend
>>
>> site info:
>> 800 OSX machines 300 Windows
>>
>> woud like puppetmaster to be CentOS with passenger and dashboard or forman
>>
>> Thanks in advance
>>
>> Keith
>>
>
> disregard last reply  lack of sleep
>
> Keith 
>




Still never go this working. I just switched over to Foreman on Fedora 19 
and everything works with minimal tweeks 

Keith

-- 
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/561b6789-0707-4d2f-9f28-678d7e264b20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Good PupptMaster/Passenger Guide w OSX 10 .9

2014-09-01 Thread keith . staley


On Tuesday, August 26, 2014 7:23:45 PM UTC-4, keith@gmail.com wrote:
>
> HI guys;
>
>  after speaking with puppet labs and gettting the pricing for my site, I 
> thought it maybe cheaper ot go open spurce. so I am asking for a good guide 
> you guys have used the following:
>
>
> http://nullr0ute.com/2014/01/puppetmaster-on-apache-with-passenger-in-5-mins/
>
> http://www.6tech.org/2013/01/how-to-install-puppet-open-source-on-centos-6-3/
> http://darktraining.com/linux/105/
> http://www.unixmen.com/install-puppet-server-centos-6-56-4/
>
> all have given my the dreaded  ruby error. I hav eupdated the agent nodes 
> to the latest version of puppet/factor/hiera, but still get the error, I 
> have installed via RVM ruby 2.0, 2.1.2, and have seen passenger not running 
> ( passenger-status) and still get the ruby message from the clients.
>
> so I am asking for  a little help and any links you guys can recommend
>
> site info:
> 800 OSX machines 300 Windows
>
> woud like puppetmaster to be CentOS with passenger and dashboard or forman
>
> Thanks in advance
>
> Keith
>






Still never go this working. I just switched over to Foreman on Fedora 19 
and everything works with minimal tweeks 

Keith 

-- 
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/faf566a4-854d-4d40-9f94-d286d8273f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet agent loops and taking 100% of one CPU

2014-09-01 Thread Walid
what if you run via cron? in my case I had a similar issue but it was
mcollective agent when  there was an intermittent issue with the network


On 29 August 2014 17:59, pmorel  wrote:

> Hello,
>
> Recently 3 puppet agents instances (on 3 different servers yet with
> quasi-similar configurations) started running at 100% on one CPU and thus
> they cannot listen to the master anymore.
>
> Nothing appears to be wrong in the logs : no fail or execution problems.
>
> Starting the agent like so : puppet agent --debug --verbose -t, I can see
> that puppet runs fine until some command that executes "chown ..." and then
> no more debug/log. Personally I don't think the problem comes from
> "chown"...
>
> With strace, I can see that the puppet agent reads the file
> /var/lib/ruby/1.8/puppet.rb, closes it and then reopens it and recloses
> again in infinite loop (causes the 100% CPU).
>
> I've tried the solution of executing date -s "`date`" (solution that I've
> seen in threads with similar problem", also I reinstalled puppet (with
> purge) and ruby but no change.
>
> Also I'm running ruby1.8 and puppet2.7.22 but I don't want to update those
> packages.
>
> The servers are running Ubuntu 12.04.4 LTS
>
> Any help is welcomed :)
>
> --
> 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/7e08b19a-796c-4546-9c52-c1bb97d97f92%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAN4dctpMoovFj-RPKJvKWduBMmWzUV05Yg9-FYLjpj3DW2ZA0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Why does my Puppet Master randomly revoke my Agent's certificate?

2014-09-01 Thread Jason Oakley
My servers were working fine, when I got this error:
Inventory
Could not retrieve facts from inventory service: SSL_connect returned=1 
errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate 
revoked

Now, everything was working fine. Due to this error, I re-created the 
certificate and all was well. Then, I logged onto the Master a day or two 
later and the certificate is yet again revoked.
How do I stop this?

TIA

-- 
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/c3a42658-0e1b-4d6d-9913-76a04b9fcff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.