[Puppet Users] Re: Issue Installing Puppet on Red Hat6

2012-01-26 Thread joe
You're mixing downloads and system packages. rpm (thus yum) doesn't recognize that you have rubygems and rake installed, because it only looks at the package database to determine that. Right now, you are missing a repo that contains those packages in your rh6 config, so yum can't find and install

[Puppet Users] Augeas fstab question

2012-02-10 Thread Joe
, I'm not sure how to say: If /var is a filesystem and doesn't already have an opt of acl Any suggestions would be appreciated. joe -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-u

[Puppet Users] Re: template/files - ignoring lines

2012-03-17 Thread joe
See the following: https://github.com/puppetlabs/puppetlabs-stdlib/tree/master/lib/puppet/provider/file_line On Mar 16, 6:02 am, jcbollinger wrote: > On Mar 15, 7:24 am, Gamon wrote: > > > I'd like to have a template that would contain: > > > line1 <%= value1 %> > > line2 <%= value2 %> > > line

[Puppet Users] Facts of other nodes

2012-05-10 Thread Joe
27;s still a concern I have. Secondly, if I choose to apply my_mysql_server to two nodes, there would be more than one result for db_host. I'm not exactly sure how to get around this. What's the best practice for this type of situation? Should I just hard-code the fqdn of my_mysql_server

[Puppet Users] Puppet Subreddit

2011-06-22 Thread JoE
Just letting everyone know that this subreddit exists. http://www.reddit.com/r/puppet Enjoy, -Joe -- 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

[Puppet Users] Re: exporting resources that aren't built-in resources...

2011-06-23 Thread JoE
How well does concat work with exported resources? I'm about to try the same thing, and I am wondering if you have any tips. On Jun 22, 3:32 pm, Rich Rauenzahn wrote: > On Wed, Jun 22, 2011 at 3:03 PM, Rich Rauenzahn wrote: > > We seem to be able to export resources (and import them) just fine i

[Puppet Users] Puppetmaster filing up /var/log/messages

2010-04-30 Thread JoE
Puppetmaster is filling up /var/log/messages even though logdir is set to /var/puppet/log/ and masterlog = /var/puppet/log/puppetmaster.log. There is however no file /var/puppet/log/puppetmaster.log These are the messages being filled in /var/log/messages: Apr 30 17:41:44 server puppetmasterd[9721

[Puppet Users] Re: Puppetmaster filing up /var/log/messages

2010-05-03 Thread JoE
I can't find anywhere where the configs are overridden. I was able to fix the issue by starting puppetmaster with the command: puppetmasterd -l /var/puppet/log/puppetmaster.log but it still concerns me that the config file is not read, even if I point to it directly, by starting it with: puppetmas

[Puppet Users] Re: error: Could not intern from pson: source did not contain any PSON!

2011-01-04 Thread joe
I have the same intermittent error, but both the client and server are on 2.6.4. Is there any other reason this could happen? On Dec 6 2010, 3:51 pm, "russell.fulton" wrote: > > This can happen when your client's major version is larger than your > > server's major version.  Is that possable? >

[Puppet Users] How can I test if source file exists?

2011-06-10 Thread JoE
bashrc": ensure => present, source => "puppet://modules/users/${username}.bashrc" } } normal_user { "joe": fullname => "Joe Hillenbrand", groups => ["admin"] } -- You received this message because you are

[Puppet Users] Re: Puppet tutorial (and talk)

2009-10-22 Thread joe
There doesn't seem to be any mention of cert signing... On Oct 22, 1:48 pm, John Arundel wrote: > Hi, > > I recently wrote a blog post for absolute beginners with Puppet, > hopefully the first in a tutorial series called 'Powering Up With > Puppet'. I'd be grateful for some feedback on it, both

[Puppet Users] After generating puppet.conf, puppetd just echos the new file.

2009-11-03 Thread JoE
I am running puppet 0.24.8 on FreeBSD. When I run, puppetd --genconfig > /usr/local/etc/puppet/puppet.conf running commands like puppetd --genmanifest > /usr/local/etc/puppet/manifests/site.pp then site.pp will just be filled with puppet.conf. But if I remove puppet.conf, then generating site

[Puppet Users] Firewall between master and client?

2009-11-19 Thread JoE
I understand that puppet needs port 8140 tcp/udp open for server and client. Will puppet work if a firewall is set up between these two hosts that only allows traffic from the server to the client (server -> client), or is two communication required? Thanks for the help, -JoE -- You recei

[Puppet Users] Run a script when it has been changed.

2010-01-13 Thread JoE
Hi all, Currently I am trying to have a script run whenever a change is made to it. Here is an example of when my configurations look like: file { "/usr/bin/data/": owner => "rot", group => "wheel", mode => "755", purge => true, recurse => true, s

[Puppet Users] Re: Run a script when it has been changed.

2010-01-14 Thread JoE
and it does work. Though, I don't necessarily want to subscribe to the directory if I can avoid it because some other files in there may change and I might not want to restart the script then. Sorry for the confusion earlier. On Jan 13, 5:35 pm, Dan Bode wrote: > On Wed, Jan 13, 2010 at 1:

[Puppet Users] Re: Run a script when it has been changed.

2010-01-14 Thread JoE
What is interesting is that this will not work even if "get-data.sh" is already in "/usr/bin/data". Is this a bug? On Jan 14, 9:57 am, JoE wrote: > Yeah, that is what is actually in my file. I had to change the names > to protect the innocent, and I made some mistakes w

[Puppet Users] Re: Run a script when it has been changed.

2010-01-14 Thread JoE
mode => "755", source => "puppet://puppet/data/bin/get-data.sh"; } exec { "/usr/bin/data/get-data.sh restart": subscribe => File["/usr/bin/data/get-data.sh"], refreshonly => true;

[Puppet Users] Re: Run a script when it has been changed.

2010-01-14 Thread JoE
definition. I should have refreshed the discussion before sending... On Jan 14, 10:38 am, JoE wrote: > Nevermind, I solved the problem. The file needs to be explicitly > mentioned even though it is already in /usr/bin/data, see the code > below: > > define get-data() { > >  

[Puppet Users] Re: Git vs SVN?

2010-01-14 Thread JoE
You can even use git for an svn style workflow. For example, at my work, we have a local git repo for managing puppet configs, and then we periodically push those out to a backup server. git push ssh://backup.server/path/to/puppet/repo.git You can even use git with an already existing svn server.

[Puppet Users] Re: Job Listing - Linux Admin in Boulder, CO

2012-08-17 Thread joe
If I lived on that side of town, I'd be interested, but where I live now that commute would be terrible. On Friday, August 17, 2012 3:13:54 PM UTC-6, guymatz wrote: > > It's not a telecommute position. No relocation possible. Sorry for > having not been explicit about that. > > And sorry for n

[Puppet Users] Re: inconsistencies with arrays: want multiple requires

2012-11-19 Thread joe
I think you misunderstand what puppet is doing there. Variables are not a literal character replacement, they have types. I think what you want is require => Package[$pkglist] The [] in your variable assignment tells puppet it is an array. The [] in the Package example I provided tells puppet

[Puppet Users] Re: How do you install a yum repo?

2012-11-20 Thread joe
Also, there is a much simpler way using your original approach. The Package type has a provider parameter that can be set to rpm. So instead of an exec, you just have a package resource that installs that rpm. You should also look into the unless parameter to exec. It runs a command to determin

[Puppet Users] Re: new user - understanding arrays as variables in defined types

2012-11-20 Thread joe
Nothing wrong with that. It's a very common practice. One thing I would recommend is setting your array to a variable and passing that variable to the define. It just makes your code cleaner and easier to read: node 'mynode' { include firewall $sources = ['node1', 'node2'] myfirewall::acc

[Puppet Users] Re: subscribe => Package

2012-11-27 Thread joe
Instead of subscribe => Package, it's require => Package['toola'] or similar. If you want to make sure all three packages are installed before the file, the best thing in this situation is to order the classes. Either in a separate module altogether or somewhere that makes sense for you (perha

[Puppet Users] Re: Is it possible to run functions at run time ?

2012-11-27 Thread joe
What you should do instead is set the path based on the value of $myclass::provider. if $myclass::provider == 'package' { On Tuesday, November 27, 2012 3:58:05 PM UTC-7, Yanis Guenane wrote: > > *Specification* : my manifest look more like this > > class myclass ($provider = 'package') { > ca

[Puppet Users] Re: Is it possible to run functions at run time ?

2012-11-27 Thread joe
You should set the path based on the value of $myclass::provider: if $myclass::provider == 'package' { test = '/path/a' } else { test = '/path/b' } On Tuesday, November 27, 2012 3:58:05 PM UTC-7, Yanis Guenane wrote: > > *Specification* : my manifest look more like this > > class myclass ($p

[Puppet Users] Re: wildcards in file type?

2008-11-06 Thread joe
I'm having a similar issue that that wiki entry does not directly address. I'm trying to do a subscribe on a file definition that is a directory. I have ensure => directory and recurse => true. I do not use puppet to source the files (they are on nfs shared to all servers that use them). Puppe

[Puppet Users] Re: wildcards in file type?

2008-11-06 Thread joe
n that directory change. I would think it's because I'm not sourcing those files, but I'm not sure. On Nov 6, 12:37 pm, "Evan Hisey" <[EMAIL PROTECTED]> wrote: > On Wed, Nov 5, 2008 at 6:19 PM, joe <[EMAIL PROTECTED]> wrote: > > > I'm having a

[Puppet Users] Re: wildcards in file type?

2008-11-06 Thread joe
ROTECTED]> wrote: > This notification will only fire if the managed parameters for the   > directory are out of sync, e.g. Owner/group/modes/file type (link,   > file). > > Subscribe also implies require, FYI =) > > On 7/11/2008, at 8:38 AM, joe <[EMAIL PROTECTED]>

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread joe
any resources which subscribe > to the directory. > > I have used this method a number of times to great success. > > --Paul > > On Thu, Nov 6, 2008 at 6:03 PM, Aj <[EMAIL PROTECTED]> wrote: > > > No, there is no way. > > > On 7/11/2008, at 1:01 PM, joe <[E

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread joe
way. On Nov 7, 3:59 pm, "Paul Lathrop" <[EMAIL PROTECTED]> wrote: > No, not a bug at all. Why do you think it might be? > > There is no reason to be concerned by the multiple notifications, > either; Puppet is smart enough to only refresh the service once. > > --Paul &

[Puppet Users] Re: wildcards in file type?

2008-11-07 Thread joe
Though with recurse => true, puppet does look at the mtime of the individual files, per my output sample from previous email. My last question was really why won't it do default checksum (md5) on the files in the directory when I have recurse => true. It only looks at the files in the directory

[Puppet Users] Re: wildcards in file type?

2008-11-12 Thread joe
:20 pm, Luke Kanies <[EMAIL PROTECTED]> wrote: > On Nov 7, 2008, at 1:07 PM, joe wrote: > > > I don't think it's a bug that puppet sees two reasons to bounce the > > service, I think it's a bug that it's only doing it when I change the > > checksum

[Puppet Users] Re: wildcards in file type?

2008-11-13 Thread joe
PROTECTED]> > > > On Nov 12, 2008, at 4:51 PM, joe wrote: > > > > That makes sense, though I would think if you have recurse => true   > > and > > > a subscribe/notify, then checksumming should be enabled by default   > > in > > > that scenario al

[Puppet Users] Re: create a file only if directory exists

2008-11-20 Thread joe
Your require is actually creating the site1 directory if it doesn't exist (unless your file def. for that directory has ensure => absent). I think you want to go the other way and ensure that the site1.conf is created by the definition for the site1 directory. In other words, put a require for th

[Puppet Users] Re: Best practice for modifying options in an inherited class?

2008-12-12 Thread joe
You should use a subclass with an override, like so: class postfix-special inherits postfix { File["/etc/postfix/main.cf"]{ content => template("apps/postfix/main.cf.special.erb") } node special { include baseclass include postfix-special } That should get you the desired behavior

[Puppet Users] Re: Pushing out puppet.conf?

2009-02-18 Thread joe
You must do one of two things to make this work. You can either add a subscribe in the service definition for the puppet.conf or you can put a notifiy in the puppet.conf file definition for the puppet service. example 1: service {"puppet": ensure => running, enable => true, subscrib

[Puppet Users] Re: Experiences with RHN Satellite?

2009-03-09 Thread joe
Did a POC of it at my current company. I've also had the RedHat Enterprise Deployment and Virtualization class. This product was originally envisioned began development before RedHat even had an IPO. The reason I mention this is that the mindset around systems management at that time is what yo

[Puppet Users] Re: How to put files in a user's home dir without knowing it?

2009-05-12 Thread joe
If you have a fact called home_root you would use it like this: file { "$home_root/$user/.zshenv": ...} Does that work for you? On May 12, 2:15 pm, Robin Lee Powell wrote: > What I want to do is: > >     file { "~$user/.zshenv": >     ...} > > but that doesn't work.  I made custom facts for ho

[Puppet Users] Re: How to put files in a user's home dir without knowing it?

2009-05-12 Thread joe
of files in a > bunch of different user's home directories; that why I use $user > below. > > -Robin > > > > On Tue, May 12, 2009 at 12:04:08PM -0700, joe wrote: > > > If you have a fact called home_root you would use it like this: > > > file { "

[Puppet Users] Re: How to put files in a user's home dir without knowing it?

2009-05-12 Thread joe
d pass $home_root to the define, and have it operate > on the directory rather than the user name. > > -Robin > > > > On Tue, May 12, 2009 at 12:15:36PM -0700, joe wrote: > > > What exactly is your define attempting to do?  Define the users for > > which a certain

Re: [Puppet Users] How to only apply my manifests to certain classes?

2012-12-22 Thread joe
This is an excellent post on how to organize those types of dependencies. http://www.craigdunn.org/2012/05/239/ On Friday, December 21, 2012 4:10:45 AM UTC-7, Steve Button wrote: > > On Thursday, 20 December 2012 16:51:59 UTC, rvs wrote: > >> On Thu, Dec 20, 2012 at 8:11 AM, Steve Button >> wro

[Puppet Users] Re: problem with restart a service when a file changes

2012-12-26 Thread joe
What it's telling you is that the command it's running (zmamavisdctl) is spitting out a return code of 1, which typically means that there was an error running the script. Either the command is actually failing, or the command is poorly written and does not provide the correct return code. Thi

[Puppet Users] Re: looping over directory array

2013-01-08 Thread joe
Create a defined type and call it with the array of app names: define app_dirs { file {"/some/where/${title}/foo": mode => '0644' } file {"/some/where/${title}/bar": mode => '0644', } } app_dirs { apps: } On Tuesday, January 8, 2013 12:18:49 PM UTC-7, Stefan Wiederoder wrote: >

[Puppet Users] Re: looping over directory array

2013-01-08 Thread joe
Sorry, that should be app_dirs { $apps: } On Tuesday, January 8, 2013 12:59:49 PM UTC-7, joe wrote: > > Create a defined type and call it with the array of app names: > > define app_dirs { > > file {"/some/where/${title}/foo": > mode => '0644'

Re: [Puppet Users] Resource ordering problem...

2013-01-31 Thread joe
Nothing about your notify resources is actually telling you what's going on with the variables. Just because the details notify happens last, doesn't mean that the variable was evaluated at that time. Variable assignment is parse-order dependent. I'd look to make sure your custom function actual

[Puppet Users] Re: Installing Operating systems

2013-02-04 Thread joe
Puppet doesn't do OS provisioning itself. You'd need a separate system to do that part, then hand off to puppet after a minimal install has been completed. You can use a tool like Foreman (http://theforeman.org/). It will handle the provisioning of the systems and also integrates with puppet t

[Puppet Users] Re: Installing Operating systems

2013-02-04 Thread joe
There is also razor (https://puppetlabs.com/solutions/next-generation-provisioning/). It is only for provisioning (not assigning classes) and is the future of provisioning and puppet. On Monday, February 4, 2013 11:29:33 AM UTC-7, joe wrote: > > Puppet doesn't do OS provisioning it

[Puppet Users] Re: Best way for conditional dependency?

2013-02-05 Thread joe
If freeipa-client will be on all systems, just order it the other way. In the user module, make your class before freeipa-client. That way, the ordering is only in place when you include the user class. On Tuesday, February 5, 2013 11:21:30 AM UTC-7, Bret Wortman wrote: > > I have a situation w

[Puppet Users] Re: puppet exported resources are not being realized

2013-02-08 Thread joe
I think your collector syntax is off. Try this: File <| tag == 'tmp-file' |> (note the fewer | characters) That should probably be a syntax error... On Friday, February 8, 2013 10:25:37 AM UTC-7, ashrith wrote: > > I am trying to export store config's using puppetdb as follows: > > node test {

[Puppet Users] Error: Could not find class for on node

2013-02-11 Thread joe
The simple answer is to put include manifests/*.pp in your site.pp, but real answer to follow the module convention: http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] Re: Checking GIT updates

2013-02-14 Thread joe
Puppet isn't particularly good at code deployment. Ideally, you'd package your code, set a package resource to ensure => latest, then update your package repo with the new code. Then, all the resources that subscribe to that package (services, etc.) would be refreshed when the package gets upda

Re: [Puppet Users] puppet module issue

2013-02-22 Thread joe
WIth the puppet module structure, you don't import any pp files from the modules ever. You only use include. If you look at the github for the module, it explains which classes do what. https://github.com/puppetlabs/puppetlabs-mysql The base class (mysql) only installs the client. mysql::server

[Puppet Users] Re: Restructure puppet modules

2013-03-11 Thread joe
Modules are not overkill and are, in fact, the only way you can do what you intend. There is currently no module structure that would allow you organize your manifests the way you'd like and still be able to apply classes flexibly. The reason for this is that the module structure in puppet is

[Puppet Users] Re: Organization of puppet classes

2013-03-11 Thread joe
You want roles and profiles: http://www.craigdunn.org/2012/05/239/ On Monday, March 11, 2013 6:02:15 PM UTC-6, Mike Reed wrote: > > Hello All, > > I've been looking for a simple way to clean up my nodes.pp file and I was > hoping to get some suggestions from you folks. At the moment, I keep all

[Puppet Users] Re: Only running database_grant the first time.

2013-03-12 Thread joe
refreshonly should be built in to all types. Did you actually try it, or did you just not see any docs saying it was there? On Tuesday, March 12, 2013 4:45:58 AM UTC-6, Stuart Grimshaw wrote: > > I'm using puppet through Vagrant to manage my dev VM, and as part of that > I have a few database g

[Puppet Users] Re: Difference between Topic and Queue in ActiveMQ?

2013-03-13 Thread joe
You should try asking the ActiveMQ community, not the puppet community. On Wednesday, March 13, 2013 3:33:35 AM UTC-6, snlsin...@gmail.com wrote: > > Hi all, > I m not clear with ActiveMQ topic and queue? Please tell me how > they work? > > Thanks in advance. > -- You received this mes

Re: [Puppet Users] Puppet and mobile OS

2013-03-13 Thread joe
The bigger issue here is that neither iphone nor android really *need* what puppet offers. In terms of deployment, there are already methods of doing such things (TouchDown comes to mind) that better reflect the model of the mobile OS. Most of the underlying tools used by the providers in puppet

[Puppet Users] Re: Copying a 900 mb file to Windows !!!

2013-03-13 Thread joe
I wouldn't even do this with a file resource. I'd write a small script to pull it down from a web server and install it then have puppet run that as an exec. I'd also have the script remove the update when it's done since you probably don't want 900mb on disk for no reason. On Wednesday, March

[Puppet Users] Re: Installing a tarball using Puppet

2013-03-14 Thread joe
What llowder said. But he meant fpm, not fom: https://github.com/jordansissel/fpm On Thursday, March 14, 2013 3:40:20 PM UTC-6, llowder wrote: > > > > On Thursday, March 14, 2013 1:20:39 PM UTC-5, ridha gadhgadhi wrote: >> >> Hi all, >> >> I want to install opensaf from a tar file. Below, the con

[Puppet Users] Re: setting up default param value to all instances of a specific resource type

2013-03-18 Thread joe
There's no way to have the defaults in the top scope if you put them in a module. Module implies class, which implies a scope under top scope. Site.pp would be the appropriate place, but keep in mind there is no way to "enforce" these defaults. There's a fairly common practice these days of set

Re: [Puppet Users] Inherit two classes?

2013-03-18 Thread joe
Better practice is to expose the functionality of those classes through defines or parameterized classes. For instance, use a define like apache::vhost in the puppetlabs/apache module: https://github.com/puppetlabs/puppetlabs-apache/blob/master/manifests/vhost.pp That way, all you have to do i

[Puppet Users] Re: Managing "" entries in httpd.conf with Puppet.

2013-04-03 Thread joe
Simple answer: don't. Use apache's conf.d construct to manage virtual hosts for each so they can contain their own config. See the puppetlabs apache module: https://github.com/puppetlabs/puppetlabs-apache On Wednesday, April 3, 2013 10:57:30 AM UTC-6, Cesar Covarrubias wrote: > > So I am workin

[Puppet Users] Re: Puppet parameterized class - include for declaration?

2013-04-09 Thread joe
You can include a parameterized class as long as all it's parameters have default values. On Monday, April 8, 2013 3:10:03 PM UTC-6, Shantanu wrote: > > > The parameterized classes guide mentions that a parameterized class is > declared using following syntax [1]: > > class {'classname': } >

[Puppet Users] Re: testing static manifests

2013-04-09 Thread joe
Testing of puppet manifests is done using rspec. http://rspec-puppet.com/ https://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/ On Tuesday, April 9, 2013 1:46:32 PM UTC-6, Bernardo Costa wrote: > > I would like to know how do people test a manifest that is basically > static

[Puppet Users] Re: puppet apache module dependency cycle

2013-04-24 Thread joe
Just declare or include apache without the chaining syntax. Should work fine. include apache class {'apache::mod::php': } On Wednesday, April 24, 2013 4:22:21 PM UTC-6, jmar...@gmail.com wrote: > > > I am trying to use puppetlabs apache module on CentOS to install mod php > package. > >clas

[Puppet Users] Re: Puppet and internal modules...

2013-04-25 Thread joe
One thing you certainly need to do is define a clear line of what puppet will and will not do in your environment. Puppet is not well suited to code deployment. It is extremely good at maintaining the environment in which code runs. I would allow contributions from your dev team liberally, as

[Puppet Users] Re: Using Puppet to trigger a script when error occurs on log file

2013-05-07 Thread joe
This is not something puppet is intended to do. For one, puppet makes periodic runs and does not respond to changes on the system in realtime. So best case, your app would get restarted within 30 minutes (or whatever your runinterval is) of an error occuring, but not immediately upon that error

[Puppet Users] Re: define and exported resources - giving wrong template content

2013-05-08 Thread joe
jcbollinger is correct. Templates are evaluated on the master in response to a catalog request. Any facter values used in the template will be the values from the host requesting the catalog. In your nagios module, you export the file resource (with it's contents) from the server with the cor

Re: [Puppet Users] Running all apt source and update operations first, best practice.

2013-05-10 Thread joe
This can be achieved without stages if you put the relationship inside site.pp outside any class scope. On Friday, May 10, 2013 8:25:58 AM UTC-6, jcbollinger wrote: > > > > On Thursday, May 9, 2013 10:23:25 PM UTC-5, Nan Liu wrote: >> >> On Thu, May 9, 2013 at 11:52 AM, James Kyle wrote: >> >>>

[Puppet Users] Re: RHEL patches broke my puppetd

2013-05-10 Thread joe
You should upgrade from 0.25.5. It is quite old and no longer supported. On Friday, May 10, 2013 2:17:00 PM UTC-6, dsdtas wrote: > > Earlier this week, I applied RHEL patches to a couple of dev server with > puppet 0.25.5 and now I can no longer run puppetd commands without > constantly getting

[Puppet Users] Re: module dependancy

2013-05-15 Thread joe
In class myapp::install, just require the other class: require Class['pythonpip::install'] before the package statement. On Tuesday, May 14, 2013 12:36:22 PM UTC-6, Matt F wrote: > > I have two modules, and I'm having some dependacy problems: > > 1 - Install python "pip": > > class pythonpip::i

[Puppet Users] Re: How to apply to all hosts with exception list.

2013-05-16 Thread joe
The easiest thing to do would to make a subclass called cups::enabled or similar and use an override: class cups::enabled inherits cups{ # The inherits is important Package['cups']{ ensure => 'present, } Add service and config file resources here } The problem with trying to use hi

[Puppet Users] Re: Rhel based distro and multiple package version installed

2013-05-20 Thread joe
Please heed the advice of others concerning packaging. As to your require question, you can require a defined type just like any other resource: require => Tomcat::Home['6.0.37'] On Saturday, May 18, 2013 2:38:47 AM UTC-6, Luca Gervasi wrote: > > Hello, > > i'm starting using Puppet on my per

Re: [Puppet Users] Run a File resource only if another file is missing

2013-05-31 Thread joe
You should really reconsider how you are going about things and organizing your resources if you have to do stuff like this. Puppet was never meant to be reactionary in this sense. It's entire purpose is to define the state of the system and enforce that state, not to respond to the state of th

[Puppet Users] Re: Status of bug #8040?

2013-06-05 Thread joe
Using anchors happens alot less than you think if you write minimal functionality into your subclasses. You don't put anchors in subclasses to anchor them to the parents. You may need anchors in subclasses if they include other classes whose resources need to be ordered, but this really shouldn

[Puppet Users] Re: less drastic alternative to fail()?

2013-06-11 Thread joe
You can put the resources inside the class into a big if statement that checks the vars and does a notify if the class can't be applied. I've seen this in a few modules. On Tuesday, June 11, 2013 3:53:13 PM UTC-6, mpou...@afilias.info wrote: > > I have a few cases of error checking to make sure

[Puppet Users] Re: Not able to transfer the file puppet master to the client

2013-06-12 Thread joe
You don't import .conf files in your site.pp. Only .pp files. The fileserver config file is not valid puppet syntax. Puppet will find and use it on it's own. On Wednesday, June 12, 2013 7:50:12 AM UTC-6, Ramesh Mahimalur wrote: > > Hello, > > I have installed two VMs one for master and another f

[Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-20 Thread joe
Does your repos class have a bunch of classes included? If so, those are not caught by the require and you need to use the anchor pattern: http://projects.puppetlabs.com/projects/puppet/wiki/Anchor_Pattern The ordering (no matter how you do it) only orders the *resources* in that class. Not the

[Puppet Users] Puppet update to 3.6.1 causes Error 400 on SERVER: no 'environments' in ...

2014-05-27 Thread joe
After upgrading to Puppet 3.6.1 I get this error: Warning: Error 400 on SERVER: no 'environments' in {:root_environment=>#, :current_environment=>#} at top of [[0, nil, nil]] Any ideas? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

Re: [Puppet Users] Puppet update to 3.6.1 causes Error 400 on SERVER: no 'environments' in ...

2014-05-30 Thread joe
How did you not define any environments. I've removed the /etc/puppet/environments folder and have no envs. set anywhere else. Still happens with WebRick. On Tuesday, May 27, 2014 1:31:34 PM UTC-2:30, Atom Powers wrote: > > I struggled with this for a while on Friday. > The error doesn't occur u

[Puppet Users] Node classification groups for Puppet Community edition?

2016-12-22 Thread Joe
Hi Guys, new to puppet. Wondering if htere are node classification groups for puppet community edition or if these are only available in the Enterprise version? Thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

[Puppet Users] Array Iteration for Community Edition of Puppet(3.8)

2016-12-31 Thread Joe
Hi All Puppet v3.8.7 community on Ubuntu 14 LTS I have been attempting to write a class to use the "file_line" type reference from the stdlib library to add multiple lines to a file if these lines are not present. I was attempting to do this with iteration using the each function and tried wi

[Puppet Users] Re: Array Iteration for Community Edition of Puppet(3.8)

2017-01-01 Thread Joe
3.8.6-1puppetlabs1 0 500 http://apt.puppetlabs.com/ trusty/main amd64 Packages Am I missing something? How can I install the Puppetmaster 4 and Puppetmaster-passenger 4 packages on ubuntu server via repository? Thanks again On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wro

[Puppet Users] Re: Array Iteration for Community Edition of Puppet(3.8)

2017-01-01 Thread Joe
fests/init.pp:48 I tried putting the loop in the file_line type but that throws another error since it is not acceptable to file_line. Is there any way around this that you guys are aware of? Thanks On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wrote: > > Hi All > > Puppe

[Puppet Users] Re: Array Iteration for Community Edition of Puppet(3.8)

2017-01-01 Thread Joe
Got it guys, the issue was with the file_line declaration as evidenced by the error. I made the declaration change with the variable and it worked. Thanks all for the help. On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wrote: > > Hi All > > Puppet v3.8.7 community on U

[Puppet Users] Re: Array Iteration for Community Edition of Puppet(3.8)

2017-01-02 Thread Joe
_post.html> Thanks again On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wrote: > > Hi All > > Puppet v3.8.7 community on Ubuntu 14 LTS > > I have been attempting to write a class to use the "file_line" type > reference from the stdlib library to add mu

[Puppet Users] Re: Array Iteration for Community Edition of Puppet(3.8)

2017-01-02 Thread Joe
pet 4"? I am a few days into puppet and so I am a bit confused. Thanks again On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wrote: > > Hi All > > Puppet v3.8.7 community on Ubuntu 14 LTS > > I have been attempting to write a class to use the "file_line&q

[Puppet Users] Re: Array Iteration for Community Edition of Puppet(3.8)

2017-01-02 Thread Joe
All good guys, thanks. Puppetserver 2.7.2-1 installed and clients working. On Saturday, December 31, 2016 at 10:05:49 PM UTC-7, Joe wrote: > > Hi All > > Puppet v3.8.7 community on Ubuntu 14 LTS > > I have been attempting to write a class to use the "file_line" type

[Puppet Users] Re: Problem with test run

2017-01-03 Thread Joe
Rob, is there a way to set 'stringify_facts = false' globally on the puppet server or this must be done on all clients? I just hit this with a puppetlabs module and setting to false on the agent worked. Obviously I would rather set t once on the server. Thanks On Sunday, November 6, 2016 at 10

[Puppet Users] Puppet Community Roles and Profiles

2017-01-11 Thread Joe
Hello All, Does Puppet Community support Roles and Profiles? The Puppet Community does section does not appear to have documentation on them, just looking for confirmation. Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscrib

[Puppet Users] Re: Puppet Community Roles and Profiles

2017-01-12 Thread Joe
Thank you guys very much, will read up on this. On Wednesday, January 11, 2017 at 3:52:52 PM UTC-7, Joe wrote: > > Hello All, > > Does Puppet Community support Roles and Profiles? The Puppet Community > does section does not appear to have documentation on them, just

[Puppet Users] Re: Puppet Community Roles and Profiles

2017-01-14 Thread Joe
} I am trying to set the "source" value on both of these file resources which seems impossible.. Is the way to do this to put the file resources in their own classes like file_config::file1 and file_config::file2 located in modules/file_config/manifests/file1.pp and file2.pp? I hope t

[Puppet Users] Re: Puppet Community Roles and Profiles

2017-01-14 Thread Joe
Ahh ok , so i am overthinking this..instead of declaring this class in resource like fashion just use the "include class" method ... If so that simple concept makes perfect sense. Thank you very much On Wednesday, January 11, 2017 at 3:52:52 PM UTC-7, Joe wrote: > > Hello All,

[Puppet Users] Message from application: Permission denied - /etc/puppet/modules (Errno::EACCES)

2015-05-11 Thread joe
7; /usr/local/share/gems/gems/passenger-5.0.7/helper-scripts/rack-preloader.rb:28:in `' [ 2015-05-10 21:09:09.6767 1455/7f09e209e700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is a313

Re: [Puppet Users] Facts of other nodes

2012-05-10 Thread Joe Topjian
Hi Ohad, > if you are interested in using foreman, see > http://blog.theforeman.org/2012/01/getting-foreman-search-results-into.html > I currently do not use foreman, but this is good incentive to look into it. Thank you very much. Joe -- Joe Topjian Systems Administrator C

Re: [Puppet Users] Re: Facts of other nodes

2012-05-10 Thread Joe Topjian
st via a Puppet function. The built-in extlookup() > function provides an approach of this sort. Hiera provides a more > flexible approach of the same kind, and it will be a built-in starting > with the next major version of Puppet (Telly). > Thank you for the options - it's app

Re: [Puppet Users] Facts of other nodes

2012-05-10 Thread Joe Topjian
useful. Thank you! > Its worth noting that once the next generation of storeconfigs comes out > (which is REALLY soon), it will have better APIs to support these kinds of > functions and I intend to write puppet functions that support these kinds > of use cases. > Good to know

Re: [Puppet Users] Why we wont use zpool ever again

2010-04-06 Thread Joe McDonagh
one (has that fundamental bit of philosophy changed?), and they're unlikely to change in a way that you want puppet to 'correct'. That being said, some people have 'bootstrap' envs, which would be a better place to have these destructive resources than in your production

Re: [Puppet Users] Why we wont use zpool ever again

2010-04-06 Thread Joe McDonagh
s that fundamental bit of philosophy changed?), and they're unlikely to change in a way that you want puppet to 'correct'. That being said, some people have 'bootstrap' envs, which would be a better place to have these destructive resources than in your production enviro

  1   2   3   4   >