[Puppet Users] How to remove a section in inifile?

2016-02-03 Thread Vadym Chepkov

Hi,

Is there way to remove a whole section from an inifile ?

For example,

[section]

Removing settings from the section you can do with puppetlabs-inifile module:

  ini_setting { 'made a mistake':
ensure  => absent,
path=> $config_file,
section => 'section',
setting => $setting,
  }

But how to remove empty section itself?

Thanks,
Vadym


-- 
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/8FED6BC2-1D6B-4516-9841-A8DF8664D128%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Newbie question about fetching specific value of a key from hash

2016-02-03 Thread Sam
My hiera entries -

mysqlconfig::custom_mysql_options:
  mysqld:
replicate-ignore-db: 'test'
server-id: 12
datadir: '/data/mysql_data'


I want to get the value of datadir in my puppet module. Please let me know 
what is the syntax I need to use to fetch this value. I tried something as 
follows but it doesn't work. 


$datadir = hiera('mysqlconfig::custom_mysql_options[datadir]')

  file { "$datadir":
ensure => directory,
owner  => 'mysql',
group  => 'mysql',
mode   => '0755',
  }


Thanks in advance
Sam

-- 
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/95efaffa-4873-4fda-9caa-3a38e7b3c1de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Schedule Vcsrepo to sync local with remote

2016-02-03 Thread mike r
Hello everyone, 

Im trying to use vcsrepo to sync my PE Master files with a remote git 
repository

I wanted to sync every 15 min in case there are new commits on remote. Is 
there a way to set vcsrepo to run on PE Master periodically without using a 
cron job?

this is what my vcsrepo class looks like,


cat vcsrepo.pp

 vcsrepo { "${modulepath}/nginx/files/repo":
ensure   => latest,
provider => git,
source   => https://github.com/myremote.git,
revision => 'master',
force=> true,
  }

Trying to avoid using cron but cant figure if its possible to run this on 
PE Master as 'puppet apply vcsrepo.pp' every 15 min or so. 

-- 
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/69ac8a70-7d36-425c-a08d-36163ec32691%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Monitoring Puppet with Zabbix

2016-02-03 Thread hoize
Hello,

sorry but in the past there was honestly no time to look at this problem.
Today I had some "sparetime" and built a short script, which reads from the 
puppet - last_run_summary.yaml-file. 
This script is started by zabbix via a zabbix-user-parameter.

I'm now able to monitor if a puppetrun is more than 20 minutes ago, if any 
errors came up and the puppetrun-time!



*If someone needs this script or help, don't hasitate to contact me!*
I thank you all very much!!!
-Hoize



Am Dienstag, 19. Januar 2016 12:29:57 UTC+1 schrieb Neil - Puppet List:
>
> Hello
>
> Using puppetdb the a query against its api would be my choice if you want 
> not to add custom bits to you puppet infrastructure, which is an entirely 
> reasonable thing to wish to avoid. 
>
> Neil 
> On 18 Jan 2016 07:02, "hoize"  wrote:
>
>> Has nobody an idea...?
>>
>> Am Donnerstag, 10. Dezember 2015 16:10:24 UTC+1 schrieb hoize:
>>>
>>> Hello!
>>>
>>> Is there a way to monitor puppet runs with zabbix? 
>>> Here is what i want to monitor:
>>> - a host's puppet run is more than 20 minutes ago
>>> - a puppet run fails
>>>
>>> I have searched through the internet, but I only found solutions which 
>>> works with zabbix-sender and my colleagues do not want to install 
>>> zabbix-sender, or to use report-processors which work like zabbix-sender.
>>>
>>> I hope someone can help me or maybe someone has a solution he uses.. 
>>>
>>> Thank you!
>>>
>>> Greets
>>>
>> -- 
>> 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/770f59fd-e5c1-4063-8f49-be6c7ac12ef5%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/2f7c3ae1-1e01-4f50-a63f-3b3f88f40db0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet server install failing in AWS

2016-02-03 Thread Kamlesh Patidar


On Tuesday, April 14, 2015 at 8:29:31 PM UTC+5:30, Mike Tomczyk wrote:
>
> Hi I am trying to install the 10 node PE on an aws instance. All looks to 
> go fine up to the point where this command tried to run 
>
> ** curl --tlsv1 -s https://fqn:8140 and it does this for 2 minuets. Then 
> it fails with 
>
> ** cp 
> /opt/puppet/share/installer/install_log.lastrun.puppetmaster.sandbox.net.log 
> /var/log/pe-installer
> ** sed "s/^\(q_.*password\)=.*/#\1=REDACTED/g" < 
> /tmp/pe-installer-8beUCIQv/install/
> answers.lastrun.puppetmaster.sandbox.net > 
> "/var/log/pe-installer/answers.install"
> !! ERROR: The puppet master service failed to start within 120
>seconds; unable to proceed
>
>
> I looked in the log and I do not see anything that stands out. When it is 
> getting that message I am able to telnet to the port and I do see it 
> listening on netstat. 
>
> I am running Rhel 6.6 HVM and the latest Puppet install  
> puppet-enterprise-3.7.2-el-6-x86_64
>
> I tried this on a server that is not in aws and it worked fine. I am not 
> sure what is different in aws other then I am behind a proxy. I have the 
> proxy wroking for yum so it can go out and get the updates and additional 
> files needed. 
>
>
> Thanks 
>


I resolved this issue by just disabling IPV6 on centos6.7 

-- 
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/628006bc-9f56-46d8-bd77-629789fbac38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] does puppet get download of a server ftp?

2016-02-03 Thread victor . vjlc
Hello, 

I'm new here, so I'm brazilian so sorry my bad english, but I wanted know 
if puppet can do download of a server ftp and which the best way?

thanks guys 

-- 
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/9879213e-df4e-43ab-9cd3-28232d7d651a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.