Re: [Puppet Users] variable scoping and erb templates

2016-08-15 Thread Lowe Schmidt
What version of Puppet are you running? -- Lowe Schmidt | +46 723 867 157 On 15 August 2016 at 20:48, Matt Zagrabelny wrote: > Greetings! > > I am hitting a curious question and couldn't find an answer. > > I can access variables from other classes when using an erb template. > > Here is my min

Re: [Puppet Users] module design: different module sections manipulating files in single directory

2016-08-15 Thread dkoleary
Hey I went with my option #2 for this exercise. I will definitely be looking into the package management as it'll come up. In fact, it may have already come up in a different request. For this one, though, I have something like 5 scripts in the 'all-hosts' list and 3 in the subset so individ

[Puppet Users] how to ensure LVM created before installing postgres

2016-08-15 Thread Alex Samad
Hi I would like to setup my LVM first PV VG PV mount that in /var/lib/pgsql/9.2/data and then use # default class { 'postgresql::globals': manage_package_repo => false, version => '9.2', }-> class { 'postgresql::server': } now for testing I haven't

Re: [Puppet Users] module design: different module sections manipulating files in single directory

2016-08-15 Thread Dan Mahoney
On Mon, 15 Aug 2016, dkoleary wrote: Hey; Thanks for the responses.  I hadn't thought of packages.  I will start exploring that option What would work, as a short term option: * A class that just owns /root/bin * Separate classes that create things in directories under /root/bin (say /root/

Re: [Puppet Users] module design: different module sections manipulating files in single directory

2016-08-15 Thread dkoleary
Hey; Thanks for the responses. I hadn't thought of packages. I will start exploring that option Thanks again. Doug O'Leary On Monday, August 15, 2016 at 3:42:20 PM UTC-5, Rob Nelson wrote: > > Doubt, > > I agree with Dan, packaging is the answer. And before you say it - yes, > packaging sou

Re: [Puppet Users] module design: different module sections manipulating files in single directory

2016-08-15 Thread Rob Nelson
Doubt, I agree with Dan, packaging is the answer. And before you say it - yes, packaging sounds scary at first, but it doesn't have to be. Check out FPM - https://github.com/jordansissel/fpm/wiki - to generate a package in the correct format. You can very easily package static files that way, and

Re: [Puppet Users] module design: different module sections manipulating files in single directory

2016-08-15 Thread Dan Mahoney
On Mon, 15 Aug 2016, dkoleary wrote: Hey; I suspected this was going to be a problem and, sure enough, it is.   Here's the scenario:  puppet server 4.5:  I have ~ 1200 hosts on which I want specific files in /root/bin on all hosts.  A reasonably large subset of those should have additional file

[Puppet Users] module design: different module sections manipulating files in single directory

2016-08-15 Thread dkoleary
Hey; I suspected this was going to be a problem and, sure enough, it is. Here's the scenario: puppet server 4.5: I have ~ 1200 hosts on which I want specific files in /root/bin on all hosts. A reasonably large subset of those should have additional files in /root/bin as part of an home-gro

[Puppet Users] variable scoping and erb templates

2016-08-15 Thread Matt Zagrabelny
Greetings! I am hitting a curious question and couldn't find an answer. I can access variables from other classes when using an erb template. Here is my minimal example: # puppet apply variable_scope_test.pp Notice: Compiled catalog for puppet.example.com in environment production in 0.12 secon

Re: [Puppet Users] Puppet Without Agent

2016-08-15 Thread Craig Dunn
I agree with Lowe Schmidt. Wrong tool for the job. "connect on some servers through SSH and run some command lines" sounds like command orchestration, not configuration management - Rundeck, ansible...etc as said. On Mon, Aug 15, 2016 at 3:57 PM, Lowe Schmidt wrote: > Hey, > > no, sorry. Pup

Re: [Puppet Users] Puppet Without Agent

2016-08-15 Thread Lowe Schmidt
Hey, no, sorry. Puppet cant connect over ssh and run commands for you. You can run the puppet agent without a puppet master, but then you need to transfer the manifest to the machine you want to run on first. There are other tools that lets you run commands or scripts over ssh like fabric or ansi

[Puppet Users] Puppet Without Agent

2016-08-15 Thread guilherme . silvestri
Hi guys, I wonder if I can use the Puppet without agent. I only need the Puppet connect on some servers through SSH and run some command lines. Do you know if Puppet do this? Thanks a lot. Silvestri -- You received this message because you are subscribed to the Google Groups "Puppet Users"

[Puppet Users] Re: automatically generate puppet manifests for legacy servers

2016-08-15 Thread Dennis McCarthy
Hi Corey, I cloned this as ran it on my Centos6 vm. It was easy to setup and use and it does collect literally everything! I can see why this is useful to a lot of people. Mine is puppet specific but allows for a lot more control along with role setup (directory environments) for use on a pupp