similar to: Can I exec a bash function?

Displaying 20 results from an estimated 40000 matches similar to: "Can I exec a bash function?"

2013 Jun 26
1
use of exec in puppet
Hi, I''ve tried to to exec function in puppet for enabling module for apache. Here is the code that I am using: class apache::mod { exec { "a2enmod" : command => "a2enmod proxy_http", path => "/usr/sbin/", notify => Class["apache::service"], require => Class["apache::install"], } } But in agent I''m getting the
2013 Mar 14
4
exec resource not refreshed when subscribed resource changes
Hello, I''ve created a little class which should unpack a 7z archive on Windows. The class has a parameter for passing in the archive version, so that I can trigger an update when a new version of the archive is available. A simplyfied version looks like this (requires 7z): class my_archive ($version = undef) { file { ''version'': path =>
2013 Apr 15
5
Using onlyif for Windows exec
Hello, I am in the process of "trying out" Puppet, and so far, it is going really well, and I can see a clear line of how we can use it internally. I do have one question though with regard to the using the onlyif parameter of the exec command (as per here http://docs.puppetlabs.com/references/latest/type.html#exec). Ideally, what I would like to do is to only run a PowerShell exec
2013 Jun 04
1
exec failure doesn't abort whole puppet transaction
I have my puppet defined as (pseudo code) class A { exec { somethingA: } } class B { exec { somethinB: } } Class[''A''] -> Class[''B''] the exec{ somethingA: } is actually failed on my setup, I was expecting the whole puppet transaction would fail. To my surprise, class B still got executed, and puppet agent returned with code 2
2008 Nov 13
2
ldapmodfiy via exec
I''m trying to execute an ldap modify command but have run into issues with multiple lines and can''t seem to find a happy medium. Any ideas ? exec {"ipa_modify_username_length": command => "/usr/bin/ldapmodify -h $host_name -p 389 - Y GSSAPI <<LDAP dn: cn=ipaConfig,cn=etc,dc=example,dc=com
2013 May 28
5
attention Puppet Experts: can i run puppet master and agent on same server
Hello friends, Please tell me can i have puppet master and puppet agent on same machine I am new to this world. Please tell me how can i get started. Thanks and Regards, *Ripunjay Godhani* *"The Great Man Shows his Greatness by the Way He treats the Little man"* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To
2013 Jul 25
2
How can I read registry values?
I should read the values of some registry keys like ''HKLM\SOFTWARE\Puppet\WCM\Initial_Setup''. How can I do this? Thanx Tinu -- 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+unsubscribe@googlegroups.com. To post to this
2013 Mar 21
6
How we can create two database Using same credetial using Puppet
Hello All, I wanted to create two two MySQL database with same user credential using Puppet-MySQL. How can I achieve this? Please find my script below. class mysql::vsdatabase { include mysql mysql::db { ''vidispine'': user => ''user'', password => ''user123'', host => ''db.<hostname>.com'', } } How can I add
2013 May 10
1
Can i use puppet DB for puppet dashboard ?
Hello Everyone, I am new to puppet and want to set puppet dashboard. I don''t have a database for puppet dashboard, My question is that can i use PuppetDB as database for puppet dashboard ?? If yes then please tell me how to configure it. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and
2013 Apr 27
2
can puppet agent use 2 independent puppet master ?
Hi all, I havent seen a similar post, so thought I''d ask - Is it possible to make a puppet agent use 2 different puppet masters ? E.g. I want to use 1 master to do basic configuration changes, etc. and a 2nd master to do other more application specific changes - the idea is to keep the system changes fully separated from the application changes that would be applied. Any clues /
2013 May 29
3
How can I use "puppet apply" with hiera?
I''m running Puppet v2.7.14. I have a puppet master server with Hiera and it works great. I also want to be able to apply my manifests locally on a node. I have installed Hiera on my node and I can verify using the Hiera command line application that values can be looked up: user@tag5-4-qa-sjc:~$ hiera corp_puppet_server region=northamerica datacenter=sjc environment=qa --debug DEBUG:
2013 Mar 01
2
Can puppet report the console output from service foo status?
I have an odd problem. The first time I install my new package, puppet comes back with "Execution of ''/sbin/service chirp_fe start'' returned 1:" When I run this command manually and on all subsequent puppet runs it succeeds. So I''m looking for a way to capture the console output from the invocation of /sbin/service chirp_fe start. Is there something
2013 Jun 05
4
agent prepend every line with var
How would I prepend every log line output with a [var] when I run: var=<myvar> puppet agent -t -o -- 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+unsubscribe@googlegroups.com. To post to this group, send email to
2013 Mar 27
6
puppet 3.x, rubygem pkg can't be found on a RHEL 6.4
Hi, I followed puppetlab procedure to install open source version of puppet agent 3.x. It works for CentOS 6.4 but not RHEL 6.4, anyone has pointer where I missed ? [root@mon04 ~]# yum install puppet Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. rhel-6-server-cf-tools-1-rpms
2013 May 07
7
puppet node clean using SQLite instead of PuppetDB
I have a node that has some bad stored configs (namely the wrong ssh host keys) that I''m trying to clear out. Looking around it seems I''m supposed to do: puppet node clean foo.example.com However, that keeps bailing out because it''s trying to open a SQLite3 db where stored configs are normally kept, but my stored configs are kept in puppetdb (http://pastie.org/7814483
2013 Feb 27
3
Weird problem with puppet 3.1 on Windows
Hi all, I''m installing the latest version of puppet (opensource) for Windows on Windows 2008 Server (At Amazon EC2). For some reason, Puppet''s scheduled task is configured to run every 20 hours instead of the desired 30 minutes (as shown in - http://docs.puppetlabs.com/windows/running.html) Is it a bug in Puppet? Is it something that I misconfigured? Screenshot of the
2013 Jan 31
7
Calling a "subclass" correctly in a node def?
Hi Guys! I played with this a bit and perused the Puppet3 docs, and tried a few different ways of calling the module with no joy before giving in and posting. I''m kind of new to all this so bear with me. *Goal of module* Singular module to hold both a mysql (client) and mysql-server class. Module default would be ''mysql'', or for mysql-servers we''ll call
2013 Mar 22
3
Rake tests for hiera
Hi, I''m having a hard time figuring out how to make rake spec tests work correctly with hiera and puppet 3. Should I just give up for now until the various gems work with puppet 3? -- maarten -- 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
2013 Feb 06
5
Puppet F5 module
Hi, following this<https://puppetlabs.com/blog/managing-f5-big-ip-network-devices-with-puppet/>tutorial, I finally made it till the part where I see the SSL cert request from my f5 load balancer. Then I signed it and configured in nodes.pp the same pool and irule as suggested in the tutorial. BUT when I run on the proxy: # puppet device --deviceconf
2013 Feb 13
2
SSL config in puppet.conf in v3.0x
Hi, Does this still apply in puppet 3.0.2 in the puppet.conf file on the puppet master? [puppetmasterd] ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY If yes, is puppetmasterd correct or should it be something else, like [main] or [master]? Cheers, Oli -- You received this message because you are subscribed to the Google Groups "Puppet