[Puppet Users] Re: puppetlabs-firewall: negate operator?

2012-04-24 Thread Mohamed Lrhazi
manage iptables when some rules cannot be managed by puppet, while most can? Thanks a lot, Mohamed. On Sun, Apr 22, 2012 at 11:12 AM, Mohamed Lrhazi lrh...@gmail.com wrote: If negation is not possible, then maybe I can just use two rules? firewall { '100 snat for network foo2':  chain

[Puppet Users] puppetlabs-firewall: negate operator?

2012-04-22 Thread Mohamed Lrhazi
Hello, How do I code this rule, which I believe says: NOT dest = 192.168.122.0/24 : -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -p tcp -j MASQUERADE --to-ports 1024-65535 Thanks, Mohamed. -- You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] Re: puppetlabs-firewall: negate operator?

2012-04-22 Thread Mohamed Lrhazi
foo2': chain = 'POSTROUTING', jump = 'MASQUERADE', proto = 'all', source = ['192.168.122.0/24'], table = 'nat', } On Sun, Apr 22, 2012 at 11:02 AM, Mohamed Lrhazi lrh...@gmail.com wrote: Hello, How do I code this rule, which I believe says: NOT dest = 192.168.122.0/24

Re: [Puppet Users] Use onlyif in EXEC

2012-03-13 Thread Mohamed Lrhazi
You might want to rephrase your question, as it is not obvious, at least not to me. Mohamed. On Tue, Mar 13, 2012 at 4:26 PM, Trammael evilen...@gmail.com wrote: On Monday, March 12, 2012 5:52:53 PM UTC-5, ed209 wrote: Checkout the 'creates' property, it seems like a cleaner way of doing

Re: [Puppet Users] restarting the smf services on solaris 10

2012-03-13 Thread Mohamed Lrhazi
Maybe you could test setting the start command of that service explicitly to be: /usr/sbin/svcadm disable myservice /usr/sbin/svcadm enable myservice http://docs.puppetlabs.com/references/stable/type.html#service Mohamed. On Tue, Mar 13, 2012 at 3:03 PM, Afroz Hussain

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-13 Thread Mohamed Lrhazi
The numbering in the firewall resource names is not meant for ordering their executing, but for guaranteeing their uniqueness. I too found that using stages is the only usable way out of this. Just out of curiosity, what do you mean by: We ended up in situations where the drop rules would

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-09 Thread Mohamed Lrhazi
Hi Christian, I am running into this same issue... Did you resolve it? Thanks a lot, Mohamed. On Wed, Feb 15, 2012 at 3:36 PM, Christian McHugh christian.mch...@gmail.com wrote: I've got slightly more info. In trying to figure this out I ran across http://projects.puppetlabs.com/issues/10665

Re: [Puppet Users] Re: puppetlabs-firewall stages and persistence

2012-03-09 Thread Mohamed Lrhazi
I just tried something which seems to workaround the cyclic dependency issue: - put the exec definition in the class that runs in the post stage. - in site.pp put the default: Firewall { notify = Exec[persist-firewall], } Thanks, Mohamed. On Fri, Mar 9, 2012 at 9:47 AM, Mohamed Lrhazi lrh

Re: [Puppet Users] Puppet dns requests

2012-03-09 Thread Mohamed Lrhazi
http://docs.puppetlabs.com/references/stable/configuration.html On Fri, Mar 9, 2012 at 11:22 AM, Hugo Deprez hugo.dep...@gmail.com wrote: Dear community, I just saw that when I execute puppetd -vt I can have up to 80 DNS request for the puppet server records. I specified in the puppet.conf

[Puppet Users] How to use create_resources with a define

2012-03-01 Thread Mohamed Lrhazi
I have not used the create_resources function before, looks like exactly what I need indeed. How do I use it with a define.. my ENC outputs something like: nfs_mounts: - mount_point: /data mount_device: fas3319-518.example.com:/vol/onecrddb_data/test - mount_point:

Re: [Puppet Users] How to use create_resources with a define

2012-03-01 Thread Mohamed Lrhazi
. On Thu, Mar 1, 2012 at 1:41 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Thanks guys. The hash thing sounds like my problem... but I still get the same error!! undefined method `[]' for nil:NilClass at /etc/puppet/environments/production_ml623/modules/gu_misc/manifests/init.pp:81 on node onecrddb

[Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Mohamed Lrhazi
From my ENC, I return something like, for a given node: nfs_mounts: - [/data, fas3319-518.example.com:/vol/crddb_data/test] and in my manifests I added: define mount_nfs_shares() { $mount_point = $name[0] $mount_device = $name[1] notice(mount_point:

[Puppet Users] Re: Could not find node. cannot compile

2012-02-27 Thread Mohamed Lrhazi
nodename.example.com [daemon.err] name is not an hash or array when accessing it with 0 at /etc/puppet/environments/production_ml623/modules/gu_misc/manifests/init.pp:68 on node nodename.example.com On Mon, Feb 27, 2012 at 4:17 PM, Mohamed Lrhazi lrh...@gmail.com wrote: From my ENC, I return something like

Re: [Puppet Users] Could not find node. cannot compile

2012-02-27 Thread Mohamed Lrhazi
Thank you guys, and thanks Nan. I see my mistakes now. Mohamed. On Mon, Feb 27, 2012 at 4:39 PM, Kelsey Hightower kel...@puppetlabs.com wrote: On Mon, Feb 27, 2012 at 4:33 PM, Nan Liu n...@puppetlabs.com wrote: On Mon, Feb 27, 2012 at 1:17 PM, Mohamed Lrhazi lrh...@gmail.com wrote: From my

Re: [Puppet Users] mcollective plugin question

2012-02-22 Thread Mohamed Lrhazi
You should try: mcollective-us...@googlegroups.com On Tue, Feb 21, 2012 at 10:46 AM, Kenneth Lo k...@paydiant.com wrote: We've been using mcollective primarily for coordinate service restart across nodes as well as facts-finding, which are all well and good. One thing we would like to utilize

[Puppet Users] String matching and case-insensitivity

2012-02-15 Thread Mohamed Lrhazi
When I run a puppet apply against this: notice(operatingsystem: $operatingsystem) case $operatingsystem { redhat: { notice(Matched redhat in switch) } default: { notice(Did not match redhat in switch) } } if ($operatingsystem == redhat) { notice(Matched redhat in if) } else {

Re: [Puppet Users] Startup help puppet

2011-12-08 Thread Mohamed Lrhazi
On the client, run puppet agent --test --trace --debug That would show you what the puppet client is doing If you still have problems: in include test what is test? a module? show the full content of it. I personally use modules for everything and I always have the files distributed at the

Re: [Puppet Users] Re: puppetlabs-firewall: How does it work?

2011-11-30 Thread Mohamed Lrhazi
pending design and discussion (and code obviously :-). ken. On Tue, Nov 29, 2011 at 7:52 PM, Mohamed Lrhazi lrh...@gmail.com wrote: To clarify why I am asking how does this work...The doc has this intriguing advise: If you wish to ensure any reject rules are executed last, try using stages

[Puppet Users] puppetlabs-firewall: How does it work?

2011-11-29 Thread Mohamed Lrhazi
Hello, Could someone clarify the philosiphy of this module... I need a way to manage iptables on all my systmes, and trying to imagine how this module would fit in, How does this module work? Does it check each supplied rule, for a node, against its current rules, then insert rule if missing? or

[Puppet Users] Re: puppetlabs-firewall: How does it work?

2011-11-29 Thread Mohamed Lrhazi
To clarify why I am asking how does this work...The doc has this intriguing advise: If you wish to ensure any reject rules are executed last, try using stages... Isn't the rule order integer in the resource name solving that problem? Thanks, Mohamed. On Tue, Nov 29, 2011 at 2:30 PM, Mohamed

[Puppet Users] puppetlabs-firewall: source param as array

2011-11-29 Thread Mohamed Lrhazi
Hi, am trying this rule: firewall { '100 allow ssh from GUNET': proto = 'tcp', dport = '22', source = ['10.0.0.0/8','192.168.0.0/16',], action = accept, } and it only seems to add a rule for the first subnet. The second is silently

Re: [Puppet Users] puppetlabs-firewall: source param as array

2011-11-29 Thread Mohamed Lrhazi
Cool. Thanks guys. On Tue, Nov 29, 2011 at 5:23 PM, Jacob Helwig ja...@puppetlabs.com wrote: On 2011-11-29 13:05 , Mohamed Lrhazi wrote: Hi, am trying this rule:     firewall { '100 allow ssh from GUNET':       proto       = 'tcp',       dport       = '22',       source

Re: [Puppet Users] puppetlabs-firewall: source param as array

2011-11-29 Thread Mohamed Lrhazi
the module cannot provide anything iptables itself does not, and iptables does not provide for list of ips/networks in source and dest. Thanks, Mohamed. On Tue, Nov 29, 2011 at 5:25 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Cool. Thanks guys. On Tue, Nov 29, 2011 at 5:23 PM, Jacob Helwig ja

[Puppet Users] puppetlabs-firewall: hostnames Vs IP addresses

2011-11-29 Thread Mohamed Lrhazi
Hello, The source and destination parameters accept both IP address or a hostname. If using a hostname, the firewall module thinks the rule changed each time it runs reporting: notice: /Firewall[300 allow netbackup traffic from nbmaster2-63.example.com]/source: current_value 192.168.63.42/32,

[Puppet Users] Puppet Windows: Spaces in file paths a problem?

2011-11-28 Thread Mohamed Lrhazi
I thought I read somewhere in Puppet docs/wiki... that it is recommended to avoid spaces in file paths, or some similar verbiage, but now I cant find it. Does Puppet have any known issues with spaces in file paths? It would of course scare Windows admins away... So I hope I am wrong in thinking I

[Puppet Users] Re: Puppet Windows: Spaces in file paths a problem?

2011-11-28 Thread Mohamed Lrhazi
. On Mon, Nov 28, 2011 at 4:11 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I thought I read somewhere in Puppet docs/wiki... that it is recommended to avoid spaces in file paths, or some similar verbiage, but now I cant find it. Does Puppet have any known issues with spaces in file paths? It would

Re: [Puppet Users] Re: Puppet Windows: Spaces in file paths a problem?

2011-11-28 Thread Mohamed Lrhazi
On Mon, Nov 28, 2011 at 6:28 PM, Josh Cooper j...@puppetlabs.com wrote: Hi Mohamed, On Mon, Nov 28, 2011 at 1:15 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I found where I read what I read... not directly Puppet, but Ruby: https://github.com/oneclick/rubyinstaller/wiki/Troubleshooting

[Puppet Users] Puppet Windows: scheduled_task : TypeError

2011-11-23 Thread Mohamed Lrhazi
am trying this: scheduled_task { 'Puppet Run': ensure= present, enabled = true, command = 'C:\\ruby187\\bin\\puppet.bat', arguments = 'agent --verbose --logdest C:\\Temp\puppet.log', trigger = { schedule = daily,

Re: [Puppet Users] Puppet Windows: scheduled_task : TypeError

2011-11-23 Thread Mohamed Lrhazi
Thanks JacobDid that answer my TypeError as well? Mohamed. On Wed, Nov 23, 2011 at 5:28 PM, Jacob Helwig ja...@puppetlabs.com wrote: On 2011-11-23 13:02 , Mohamed Lrhazi wrote: am trying this:     scheduled_task { 'Puppet Run':         ensure    = present,         enabled   = true

[Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
I noticed that is if I uninstall an MSI that was installed by Puppet, Puppet does not notice. Looking at the source I see it might be checking for a state file to know whether a package is installed or not: C:\ProgramData\PuppetLabs\puppet\var\db\package\msi\SplunkForwarder.yml So one has to

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
can effectively detect whether the package is installed or not, as opposed to can remember if it did install it or not. Thanks a lot, Mohamed. On Tue, Nov 22, 2011 at 2:25 PM, Jacob Helwig ja...@puppetlabs.com wrote: On 2011-11-22 07:10 , Mohamed Lrhazi wrote: I noticed that is if I uninstall

Re: [Puppet Users] Puppet Windows: msi packages removal

2011-11-22 Thread Mohamed Lrhazi
. On Tue, Nov 22, 2011 at 7:32 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I think the documentation about package providers should include something about this... Right now a provider has these features: holdable        install_options installable     purgeable       uninstallable

Re: [Puppet Users] Puppet Windows: Should I use dedicated environment ?

2011-11-21 Thread Mohamed Lrhazi
21, 2011 at 10:11 AM, Evan Hisey ehi...@gmail.com wrote: On Sun, Nov 20, 2011 at 8:05 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I stated tweaking my puppet modules and site.pp to support the new OS.. things like: if ( $operatingsystem == windows ) {    Exec { path = C:\\Windows\\system32;C

Re: [Puppet Users] Facter Windows: domain is none

2011-11-20 Thread Mohamed Lrhazi
, Nov 18, 2011 at 6:02 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I could swear this worked fine earlier.. Now facter, and hence puppet, do not see the domain name anymore: What could cause this? C:\Tempfacter --version 1.6.2 C:\Tempfacter | findstr kernel kernel = windows kernelmajversion

Re: [Puppet Users] Puppet on windows: File resource problem

2011-11-20 Thread Mohamed Lrhazi
/diffutils.php - Run it: C:\Temp\diffutils-2.8.7-1.exe /silent - Add diff' to puppet.conf: diff = C:\Program Files\GnuWin32\bin\diff et voila. Thanks, Mohamed. On Sun, Nov 20, 2011 at 7:21 PM, Josh Cooper j...@puppetlabs.com wrote: On Sat, Nov 19, 2011 at 6:35 PM, Mohamed Lrhazi lrh...@gmail.com

Re: [Puppet Users] Puppet in a bash script

2011-11-19 Thread Mohamed Lrhazi
Try adding -x to the bash (first line) to output each command as they are run... What if you removed everything in the script but the shutdown command.. does it work? Mohamed. On Sat, Nov 19, 2011 at 11:25 AM, Harish Agarwal har...@octopart.com wrote: I did the echo above and didn't get any

Re: [Puppet Users] Puppet on windows: File resource problem

2011-11-19 Thread Mohamed Lrhazi
doesn't have a 'diff.exe' command by default. You can work around this by setting show_diff = false or by specifying appropriate values for 'diff' and 'diff_args' Josh On Fri, Nov 18, 2011 at 1:42 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Anybody knows what this error, bellow, means

[Puppet Users] Puppet on windows: File resource problem

2011-11-18 Thread Mohamed Lrhazi
Anybody knows what this error, bellow, means, the target file, C:/Splunk/etc/system/local/inputs.conf, does exist. sometimes, if I delete the file, it does actually create it, but never update it if it exists and changed... The resource is defined as:     file { splunk_inputs:        owner   =

Re: [Puppet Users] Puppet on windows: File resource problem

2011-11-18 Thread Mohamed Lrhazi
appropriate values for 'diff' and 'diff_args' Josh On Fri, Nov 18, 2011 at 1:42 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Anybody knows what this error, bellow, means, the target file, C:/Splunk/etc/system/local/inputs.conf, does exist. sometimes, if I delete the file, it does actually create

Re: [Puppet Users] msi package provider: Invalid parameter install_options

2011-11-18 Thread Mohamed Lrhazi
I'll try the msi args you have... my puppet and facter both directly from github! On Fri, Nov 18, 2011 at 6:33 PM, Josh Cooper j...@puppetlabs.com wrote: Hi Mohamed, On Thu, Nov 17, 2011 at 8:10 PM, Mohamed Lrhazi lrh...@gmail.com wrote: C:\Users\ml623puppet --version 2.7.7 Puppet

Re: [Puppet Users] msi package provider: Invalid parameter install_options

2011-11-18 Thread Mohamed Lrhazi
just says it does not like install_options parameter! Thanks, Mohamed. On Fri, Nov 18, 2011 at 6:33 PM, Josh Cooper j...@puppetlabs.com wrote: Hi Mohamed, On Thu, Nov 17, 2011 at 8:10 PM, Mohamed Lrhazi lrh...@gmail.com wrote: C:\Users\ml623puppet --version 2.7.7 Puppet complains about

Re: [Puppet Users] msi package provider: Invalid parameter install_options

2011-11-18 Thread Mohamed Lrhazi
Sorry I have not used apply before... I tried this, but does seem to be right: http://paste.ubuntu.com/742820/ On Fri, Nov 18, 2011 at 7:30 PM, Josh Cooper j...@puppetlabs.com wrote: Hi Mohamed, On Fri, Nov 18, 2011 at 4:24 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Actually hold on.. am

Re: [Puppet Users] msi package provider: Invalid parameter install_options

2011-11-18 Thread Mohamed Lrhazi
OK. I figured how to use apply, but it would not reproduce the problem. the msiexec actually executes! This module though, http://paste.ubuntu.com/742840/, causes the error: http://paste.ubuntu.com/742841/ Thanks a lot, Mohamed. On Fri, Nov 18, 2011 at 8:05 PM, Mohamed Lrhazi lrh...@gmail.com

[Puppet Users] Facter Windows: domain is none

2011-11-18 Thread Mohamed Lrhazi
I could swear this worked fine earlier.. Now facter, and hence puppet, do not see the domain name anymore: What could cause this? C:\Tempfacter --version 1.6.2 C:\Tempfacter | findstr kernel kernel = windows kernelmajversion = 6.1 kernelrelease = 6.1.7601 kernelversion = 6.1.7601 C:\Tempfacter

Re: [Puppet Users] msi package provider: Invalid parameter install_options

2011-11-18 Thread Mohamed Lrhazi
Cool. Thanks guys. On Fri, Nov 18, 2011 at 9:18 PM, Nan Liu n...@puppetlabs.com wrote: MSI wasn't added until 2.7.4, so error occurs during compilation on master, and you want the master version = agent version. Nan On Fri, Nov 18, 2011 at 9:05 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I

Re: [Puppet Users] Installing Oracle

2011-11-18 Thread Mohamed Lrhazi
Maybe you need something like this: http://www.oracle-base.com/articles/misc/OuiSilentInstallations.php On Fri, Nov 18, 2011 at 9:23 PM, Douglas Garstang doug.garst...@gmail.com wrote: This is pretty ugly. I'm using puppet to install Oracle, ie an exec{} wrapped around:

[Puppet Users] msi package provider: Invalid parameter install_options

2011-11-17 Thread Mohamed Lrhazi
C:\Users\ml623puppet --version 2.7.7 Puppet complains about a package resource I am trying to use saying: Invalid parameter install_options The resource is defined as: package { splunk: name = $gu_splunk::client::splunk_package, provider = 'msi', ensure = installed,

[Puppet Users] Re: How to access vars in a template

2011-10-26 Thread Mohamed Lrhazi
: % hostname = scope.lookupvar('::hostname') sandbox_servers = scope.lookupvar('::oracle_rac_sandbox_servers') other_servers = scope.lookupvar('some_module::some_servers') % Mohamed. On Tue, Oct 25, 2011 at 9:38 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I am trying to convert

[Puppet Users] How to access vars in a template

2011-10-25 Thread Mohamed Lrhazi
I am trying to convert this: % if oracle_rac_sandbox_servers.include?(hostname) -% Into a format valid for the 2.8 version I try: % if scope.lookupvar('::oracle_rac_sandbox_servers').include?(scope.lookupvar('::hostname')) -% but I get syntax error, unexpected tIDENTIFIER, expecting ')'

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Mohamed Lrhazi
On Mon, Oct 17, 2011 at 8:53 AM, jcbollinger john.bollin...@stjude.org wrote: On Oct 16, 6:38 pm, Mohamed Lrhazi lrh...@gmail.com wrote: I tried to work around the problem by having a copy of the ENC per environment, which would work for me too... but then that does not work either

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Mohamed Lrhazi
To be clearer.. am asking about ENC setting the environment, just 'finding it out. On Mon, Oct 17, 2011 at 11:23 AM, Mohamed Lrhazi lrh...@gmail.com wrote: On Mon, Oct 17, 2011 at 8:53 AM, jcbollinger john.bollin...@stjude.org wrote: On Oct 16, 6:38 pm, Mohamed Lrhazi lrh...@gmail.com

Re: [Puppet Users] Re: Fwd: How does an ENC find the client's enviromement?

2011-10-17 Thread Mohamed Lrhazi
17, 2011 at 8:25 AM, Mohamed Lrhazi lrh...@gmail.com wrote: To be clearer.. am asking about ENC setting the environment, just 'finding it out. On Mon, Oct 17, 2011 at 11:23 AM, Mohamed Lrhazi lrh...@gmail.com wrote: On Mon, Oct 17, 2011 at 8:53 AM, jcbollinger john.bollin...@stjude.org

[Puppet Users] How does an ENC find the client's enviromement?

2011-10-16 Thread Mohamed Lrhazi
Hello, I started writing an ENC and run into what seems like a chicken and egg problem... I was starting off by getting the client's facts from the inventory service by getting: https://puppetmaster:8140/production/facts/$client_hostname and then was getting the environment from the fact named

[Puppet Users] Fwd: How does an ENC find the client's enviromement?

2011-10-16 Thread Mohamed Lrhazi
agent call specified a different environment. I guess the above is evaluated on master's start up, only once, not per client invocation. Thanks a lot, Mohamed. On Sun, Oct 16, 2011 at 1:26 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Hello, I started writing an ENC and run into what seems like

Re: [Puppet Users] Re: Cannot reassign variable

2011-10-13 Thread Mohamed Lrhazi
/rework_of_puppet_facts_for_etcfactstxt.php And so it is normal that the text file based custom facts do not exist in the first run... Thanks, Mohamed. On Thu, Oct 13, 2011 at 8:59 AM, jcbollinger john.bollin...@stjude.org wrote: On Oct 12, 4:23 pm, Mohamed Lrhazi lrh...@gmail.com wrote: I have a custom

[Puppet Users] Python yaml help

2011-10-12 Thread Mohamed Lrhazi
Sorry for being off topic. am trying the following and yaml fails to construct the object: The inventory document, from Puppet dashboard inventory service, looks like: --- !ruby/object:Puppet::Node::Facts name: pirates.uis.example.com values: productname: VMware Virtual Platform

Re: [Puppet Users] Python yaml help

2011-10-12 Thread Mohamed Lrhazi
On Wed, Oct 12, 2011 at 5:04 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Wed, 12 Oct 2011 11:01:28 -0400, Mohamed Lrhazi wrote: Sorry for being off topic. am trying the following and yaml fails to construct the object: The inventory document, from Puppet dashboard inventory service

[Puppet Users] Cannot reassign variable

2011-10-12 Thread Mohamed Lrhazi
I have a custom fact called: gu_app_oracle_rac Which gets set, indirectly, by puppet itself... and so in the very first run it does not exist... I will be changing the whole business of how I set these facts, but I need a quick workaround to the following issue... I have some templates using

Re: [Puppet Users] Python yaml help

2011-10-12 Thread Mohamed Lrhazi
_timestamp:', 'timestamp:') Thanks, Mohamed. On Wed, Oct 12, 2011 at 5:23 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Wed, 12 Oct 2011 17:13:36 -0400, Mohamed Lrhazi wrote: On Wed, Oct 12, 2011 at 5:04 PM, Jacob Helwig ja...@puppetlabs.com wrote: On Wed, 12 Oct 2011 11:01:28

Re: [Puppet Users] Workaround to Provider groupadd does not support features manages_members ?

2011-08-08 Thread Mohamed Lrhazi
Cool. Thanks you so much guys. Mohamed. On Mon, Aug 8, 2011 at 2:39 AM, Peter Meier peter.me...@immerda.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I wanted to manage a couple of groups membership, under RedHat, without managing the users (as they are LDAP users) but found

[Puppet Users] Workaround to Provider groupadd does not support features manages_members ?

2011-08-07 Thread Mohamed Lrhazi
Hello, I wanted to manage a couple of groups membership, under RedHat, without managing the users (as they are LDAP users) but found out it is not supported Is there a workaround to this? I tried: group { jbossd: gid = 520, members = [user1,user2], } Thanks a lot.

Re: [Puppet Users] Puppet Dashboard Questions

2011-05-07 Thread Mohamed Lrhazi
There is bug open for your first question: http://projects.puppetlabs.com/issues/3535 On Fri, May 6, 2011 at 12:47 PM, Christopher Lee chr...@spiralweb.com wrote: Hello, I am playing with Puppet Dashboard and I have a few questions. First, as we start using puppet we are planning on running

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-28 Thread Mohamed Lrhazi
On a build machine: - Install an independent version of Ruby, I would recommend http://www.rubyenterpriseedition.com/ Make sure *that* ruby is installed fully into one directory, such as /my-opt/ruby-enterprise, nothing in /usr/this or /var/that or whatever. - Using *that* freshly installed

Re: [Puppet Users] Re: How do you implement revert changes'

2011-04-25 Thread Mohamed Lrhazi
the reverse operation while you code the change. I would compare it to rc init scripts what have 'start' and 'stop' operations. It is all a matter of coding standards and defensive design. -Peter On Apr 24, 5:12 am, James Turnbull ja...@puppetlabs.com wrote: Mohamed Lrhazi wrote: For each

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-25 Thread Mohamed Lrhazi
enterprise-ruby (or standard) with those dependencies there. Enterprise Ruby seems to have rolled their own rpms, prefixed with pe-. I suppose you'll find out what dependencies are missing if you try running it on another host via the NFS mount :-) On Apr 13, 6:46 pm, Mohamed Lrhazi lrh

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-25 Thread Mohamed Lrhazi
and I was assuming puppet/facter/any other gems, would be installed as gems using REE. thats how I did it on Solaris and it works fine. On Mon, Apr 25, 2011 at 9:36 PM, Mohamed Lrhazi lrh...@gmail.com wrote: there should be dependencies for REE.. is all goes under /opt/ruby-enterprise

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-25 Thread Mohamed Lrhazi
should be work fine too. Thanks, Mohamed, On Mon, Apr 25, 2011 at 9:39 PM, Mohamed Lrhazi lrh...@gmail.com wrote: and I was assuming puppet/facter/any other gems, would be installed as gems using REE. thats how I did it on Solaris and it works fine. On Mon, Apr 25, 2011 at 9:36 PM, Mohamed

Re: [Puppet Users] How do you implement revert changes'

2011-04-19 Thread Mohamed Lrhazi
Thanks Felix But how is Filebucket currently used? Is there a puppet agent --restore functionality that I missed? On Tue, Apr 19, 2011 at 3:20 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 04/18/2011 11:22 PM, Mohamed Lrhazi wrote: I forgot to think about a little detail, while

Re: [Puppet Users] Script to find potential puppet clients

2011-04-19 Thread Mohamed Lrhazi
How about scan the network and collect IPs that are UP... then check puppets facts db for missing IPs ? On Tue, Apr 19, 2011 at 5:44 PM, Corey Osman co...@logicminds.biz wrote: Has anybody written a script that will scan the network to find systems not running puppet and ultimately send an

[Puppet Users] How do you implement revert changes'

2011-04-18 Thread Mohamed Lrhazi
I forgot to think about a little detail, while introducing Puppet to our environment :) For each change to production systems, one has to submit a script detailing what changes will be made and how to revert them back.. I was wondering if any of you, who implemented something similar, would care

[Puppet Users] Confused about conditional include

2011-04-17 Thread Mohamed Lrhazi
I have code like this: case $operatingsystem { redhat: { include gu_splunk::redhat } solaris: { include gu_splunk::solaris_old include gu_splunk::solaris } } In gu_splunk::solaris_old I have an Exec like this: exec {

[Puppet Users] Re: Confused about conditional include

2011-04-17 Thread Mohamed Lrhazi
Oh... is it because I have this in my site.pp: stage { pre: before = Stage[main] } class { gu_splunk::solaris_old: stage = pre } If so then whats the correct way of doing what I am trying to do? Thanks a lot, Mohamed. On Sun, Apr 17, 2011 at 2:15 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I

Re: [Puppet Users] Confused about conditional include

2011-04-17 Thread Mohamed Lrhazi
matches. Cheers, Den On 18/04/2011, at 4:15, Mohamed Lrhazi lrh...@gmail.com wrote: I have code like this: case $operatingsystem {        redhat: {            include gu_splunk::redhat        }        solaris: {            include gu_splunk::solaris_old            include gu_splunk::solaris

[Puppet Users] Are facts cached?

2011-04-17 Thread Mohamed Lrhazi
Am trying to debug a weird issue...It seems that my custom facts generated when puppet agent is run against my test master are not the same as when run against my prod master. What could explain that? A bit more specifically, my custom facts are generated by the fact:

[Puppet Users] Re: Are facts cached?

2011-04-17 Thread Mohamed Lrhazi
appreciated. Thanks. On Sun, Apr 17, 2011 at 9:29 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Am trying to debug a weird issue...It seems that my custom facts generated when puppet agent is run against my test master are not the same as when run against my prod master. What could explain that? A bit more

[Puppet Users] Re: Are facts cached?

2011-04-17 Thread Mohamed Lrhazi
]| | [gu_app_bboard]| | [gu_app_gdoc] | | [gu_app_oracle_oem]| | [gu_app_oracle_rac]| | [gu_env] | | [gu_environment] | | [gu_host] | ++ 9 rows in set (0.00 sec) On Sun, Apr 17, 2011 at 9:45 PM, Mohamed Lrhazi lrh

[Puppet Users] dashboard: 500 error trying to view files

2011-04-15 Thread Mohamed Lrhazi
Hello, When viewing the details of a report, files that changed have two hyper-links, one for each version of the file. Clicking either of such links give me a 500 error (We're sorry, but something went wrong.) How do I debug this issue? am running dashboard behind apache, and see no errors in

Re: [Puppet Users] Recursive directory copy and exec

2011-04-15 Thread Mohamed Lrhazi
I would try something like: file { /var/tmp/files: ensure = directory, ... notify = Exec[ exec { foo: command = echo * | xargs tar xf , cwd = /var/tmp/files, refreshonly = true, } On Fri, Apr 15, 2011 at 12:29 PM, Prateep prat...@anicca.net wrote: Hi all, Newbie

Re: [Puppet Users] Re: Error sending reports to dashboard

2011-04-14 Thread Mohamed Lrhazi
Sure. but if you already configured access to puppetmaster on HTTPS, it would be nice to use it, instead of adding and maintaining another setup for HTTP access. On Thu, Apr 14, 2011 at 6:54 PM, Cody Robertson c...@hawkhost.com wrote: Although I don't know the answer I'm curious as to why you're

Re: [Puppet Users] Deploy puppet via NFS?

2011-04-13 Thread Mohamed Lrhazi
Thats how we deployed to our Solaris hosts, ruby, puppet and mcollective, all from OpenCSW, all on a readonly mounted share /opt/csw Seems to work fine so far. On Wed, Apr 13, 2011 at 2:40 PM, Forrie for...@gmail.com wrote: In our environ, there are several services that are deployed via an

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-13 Thread Mohamed Lrhazi
(Enterprise version similarly). On Apr 13, 2:56 pm, Mohamed Lrhazi lrh...@gmail.com wrote: Thats how we deployed to our Solaris hosts, ruby, puppet and mcollective, all from OpenCSW, all on a readonly mounted share /opt/csw Seems to work fine so far. On Wed, Apr 13, 2011 at 2:40 PM

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-13 Thread Mohamed Lrhazi
In my case, the mount (/opt/csw) is defined in the /etc/vfstab of all the Solaris machines. On Wed, Apr 13, 2011 at 4:53 PM, Forrie for...@gmail.com wrote: Do you have puppet monitor that particular NFS mount and do you mount it read-only (presumably). On Apr 13, 3:54 pm, Mohamed Lrhazi

Re: [Puppet Users] Re: Deploy puppet via NFS?

2011-04-13 Thread Mohamed Lrhazi
If I were to do this on Linux, I would use Enterprise Ruby, install it into /opt/companyname/ruby-enterprise, then install puppet as a gem with that ruby. Thanks, Mohamed. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group,

[Puppet Users] dashboard and classes

2011-04-12 Thread Mohamed Lrhazi
Can I import all my existing classes/modules into the dashboard, or do I have to create them in the GUI? Thanks, Mohamed. -- 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

Re: [Puppet Users] puppet dashboard performance issue

2011-04-11 Thread Mohamed Lrhazi
There's some rake tasks, and other things, suggested here: https://github.com/puppetlabs/puppet-dashboard On Mon, Apr 11, 2011 at 5:29 AM, Vincent vlouvi...@gmail.com wrote: Hello, since the last upgrade to V1.1.0 The dashboard is very slow I notice this slow queries in the log :  Node

Re: [Puppet Users] Re: Can I read a file from a template?

2011-04-11 Thread Mohamed Lrhazi
Great thanks a lot. On Mon, Apr 11, 2011 at 4:54 AM, Allan Clark napt...@gmail.com wrote: Hi Allan, would mind sharing a piece of manifest/template showing how I can use that statement? The below code will look for the files mentioned in $filelist inside the files directory of the module

Re: [Puppet Users] Re: Error sending reports to dashboard

2011-04-11 Thread Mohamed Lrhazi
, although I haven't yet found anything useful in the logs. On Mar 21, 2011, at 9:41 PM, Mohamed Lrhazi wrote: I enabled debug log level in apache virtual and it seems like puppetmaster is trying to speak http, instead of https. Is https not supported for posting reports? [Tue Mar 22 00:39:43

Re: [Puppet Users] importing classes to the dashboard

2011-04-10 Thread Mohamed Lrhazi
Did you find an answer to this question? How do you I import my classes/modules into the dashboard, so I can use it as node terminus? Thanks, Mohamed. On Mon, Jan 10, 2011 at 11:01 AM, Adriana adriana.tele...@gmail.com wrote: Hello, I would like to know if it is possible to automatically

Re: [Puppet Users] Getting client information instantly

2011-04-10 Thread Mohamed Lrhazi
Sound like you need MCollective: http://docs.puppetlabs.com/mcollective/ On Sun, Apr 10, 2011 at 6:12 PM, John Chris Richards john.chris.richa...@gmail.com wrote: Hi all I wanna take a list of running services on the client instantly. Can I do this with puppet? For example, is it possible

[Puppet Users] How to setup database for Inventory Service

2011-04-09 Thread Mohamed Lrhazi
Trying to follow this document: https://github.com/puppetlabs/puppet-docs/blob/master/source/guides/inventory_service.markdown puppet does not find the tables: puppet-master[29264]: [daemon.err] Mysql::Error: Table 'puppet.inventory_nodes' doesn't exist: SHOW FIELDS FROM `inventory_nodes` How

Re: [Puppet Users] Re: Can I read a file from a template?

2011-04-09 Thread Mohamed Lrhazi
Hi Allan, would mind sharing a piece of manifest/template showing how I can use that statement? Thanks a lot. Mohamed. On Sat, Apr 9, 2011 at 9:59 AM, Allan Clark napt...@gmail.com wrote: This works for me inside of a template: Puppet::Parser::Files.find_template(mymodule/myfile) Allan. --

[Puppet Users] Re: How to setup database for Inventory Service

2011-04-09 Thread Mohamed Lrhazi
I guess the answer is drop and recreate an empty db, then restart puppet master! On Sat, Apr 9, 2011 at 2:47 PM, Mohamed Lrhazi lrh...@gmail.com wrote: Trying to follow this document: https://github.com/puppetlabs/puppet-docs/blob/master/source/guides/inventory_service.markdown puppet does

Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet Dashbard 1.1.0 Final!

2011-04-09 Thread Mohamed Lrhazi
On Fri, Apr 8, 2011 at 11:35 AM, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Apr 7, 2011 at 11:27 PM, Patrick kc7...@gmail.com wrote: On Apr 4, 2011, at 1:39 PM, Patrick wrote: On Apr 4, 2011, at 11:48 AM, Jacob Helwig wrote: 1.  Reports will need to be converted to a new schematized

Re: [Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet Dashbard 1.1.0 Final!

2011-04-09 Thread Mohamed Lrhazi
:16 PM, Mohamed Lrhazi wrote: On Fri, Apr 8, 2011 at 11:35 AM, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Apr 7, 2011 at 11:27 PM, Patrick kc7...@gmail.com wrote: On Apr 4, 2011, at 1:39 PM, Patrick wrote: On Apr 4, 2011, at 11:48 AM, Jacob Helwig wrote: 1.  Reports will need

[Puppet Users] Can I read a file from a template?

2011-04-08 Thread Mohamed Lrhazi
I have some logic I need in a template, and it needs to use a somewhat long list og hostnames I'd rather keep in a text file, instead of inside the template. Can I open files from a template and if so, what would the path be? would ./list.txt mean same path as where the template itself is

Re: [Puppet Users] Can I read a file from a template?

2011-04-08 Thread Mohamed Lrhazi
allows. A better solution might be to use extlookup, though. On Apr 8, 2011 3:34 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I have some logic I need in a template, and it needs to use a somewhat long list og hostnames I'd rather keep in a text file, instead of inside the template. Can I

Re: [Puppet Users] Can I read a file from a template?

2011-04-08 Thread Mohamed Lrhazi
ruby, you can do whatever ruby allows. A better solution might be to use extlookup, though. On Apr 8, 2011 3:34 PM, Mohamed Lrhazi lrh...@gmail.com wrote: I have some logic I need in a template, and it needs to use a somewhat long list og hostnames I'd rather keep in a text file, instead

Re: [Puppet Users] $environment in File source not working

2011-04-07 Thread Mohamed Lrhazi
Thanks guys, I only read READMEs and RELEASE NOTES when it does not work :) On Wed, Apr 6, 2011 at 11:55 PM, Nigel Kersten ni...@puppetlabs.com wrote: On Wed, Apr 6, 2011 at 8:51 PM, Tony G. tony...@gmail.com wrote: Not completely related, but I was under the impression that clients

[Puppet Users] $environment in File source not working

2011-04-06 Thread Mohamed Lrhazi
am I doing something wrong? this seems to never find my .$env file: source = [ puppet:///modules/gu_puppet/puppet.conf.$fqdn, puppet:///modules/gu_puppet/puppet.conf.$environment, puppet:///modules/gu_puppet/puppet.conf.$operatingsystem,

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.7 final!

2011-04-06 Thread Mohamed Lrhazi
Is it easy enough to build the gem version out of the tarball? I dont see the gem in: http://projects.puppetlabs.com/projects/puppet/files Thanks. On Thu, Mar 24, 2011 at 6:47 PM, Jacob Helwig ja...@puppetlabs.com wrote: This release addresses issues with the Puppet 2.6.x series and adds the

  1   2   >