I'm trying to do something similar to what is described here
http://www.devco.net/archives/2011/07/03/real_time_puppet_events_and_network_wide_callbacks.php
I only need the Puppet::Transaction::MyCustomReport, I don't need
customized Application etc (what I need to achieve is to make Puppet keep
I set custom confdir for Puppet Agent, start Puppet Agent as non-root user
and then use pluginsync to sync my custom Facter facts to this agent (as a
result they reside in $custom_confdir/var/lib/facter). With this config
Facter fails to pick up my custom facts (facter -p does not show them). Th
Found out this can be done via Facter['my_fact'].value
On Friday, April 26, 2013 8:06:54 AM UTC+3, Andriy Yurchuk wrote:
>
> I'm writing a custom Puppet service provider and I need to access one of
> my facts value inside provider to then be able to use the value in
I'm writing a custom Puppet service provider and I need to access one of my
facts value inside provider to then be able to use the value inside
startcmd/stopcmd. There is a confine which can test whether a fact exists,
but how do I actually get the value of the fact?
--
You received this messa
Having a custom Puppet report processor is it possible to not send the
reports from each agent to the master but keep them on agents? I mean
having the same functionality as described here
https://puppetlabs.com/blog/when-puppet-reports-part-2/ but with each
report's results are kept on the age
For some reason Puppet doesn't like the self.configuration_version
On Saturday, April 6, 2013 10:43:24 AM UTC+3, Andriy Yurchuk wrote:
>
> I'm trying to make the custom report process (described here
> https://puppetlabs.com/blog/when-puppet-reports-part-2/) work on my
I'm trying to make the custom report process (described here
https://puppetlabs.com/blog/when-puppet-reports-part-2/) work on my agent,
but keep getting this error in master log:
Report processor failed: String can't be coerced into Fixnum
I'm out of ideas why could it fail. Will appreciate any h
Obviously...
Thanks!
On Tuesday, February 19, 2013 12:33:49 PM UTC+2, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Andriy Yurchuk" >
> > To: puppet...@googlegroups.com
> > Sent: Tuesday, February 19, 2013 9:43:43 AM
> >
If I want to run Puppet agent only on two nodes out of ten, how can I
specify this with the Host Filters? I tried mco puppet runall 10 -I
node1,node2 and different other variations, but this does not work. Is this
at all possible?
--
You received this message because you are subscribed to the
> On 02/14/2013 11:21 AM, Andriy Yurchuk wrote:
> > This works, but this disables the ability to push configs via
> > MCollective, i.e. mco puppet runall/runonce do not work.
> >
> > On Wednesday, February 13, 2013 5:51:56 PM UTC+2, Vaidas Jablonskis
> wrote:
9 PM UTC+2, Andriy Yurchuk wrote:
>
> This works, but this disables the ability to push configs via MCollective,
> i.e. mco puppet runall/runonce do not work.
>
> On Wednesday, February 13, 2013 5:51:56 PM UTC+2, Vaidas Jablonskis wrote:
>>
>> You would have to run your agen
Thanks a lot John, the explanation was really helpful.
On Thursday, February 14, 2013 4:32:38 PM UTC+2, jcbollinger wrote:
>
>
>
> On Thursday, February 14, 2013 5:10:43 AM UTC-6, Andriy Yurchuk wrote:
>>
>> Found out that it's very simple: subscribe => Class[
Found out that it's very simple: subscribe => Class['module::class_2']
On Thursday, February 14, 2013 12:20:30 PM UTC+2, Andriy Yurchuk wrote:
>
> class module::class_1 {
> service {
> ensure => running,
> hasrestart => true,
> subscribe
t; 'man puppet.conf'.
>
> On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote:
>>
>> I need puppet agent daemon running because I need to access agent's REST
>> API (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api).
>> But I
class module::class_1 {
service {
ensure => running,
hasrestart => true,
subscribe => File[/tmp/myfile],
}
}
class module::class_2 {
file { '/tmp/myfile':
source => 'puppet:///file_server/my_file',
}
}
Having those two classes, how do I correctly write the subscribe p
I need puppet agent daemon running because I need to access agent's REST
API (http://docs.puppetlabs.com/guides/rest_api.html#the-agent-rest-api).
But I don't need the agent to run periodic checks. Is there any way to
either access REST API without daemonizing agent (I suspect this id not
possi
That worked, thanks a lot John.
On Tuesday, February 12, 2013 4:15:52 PM UTC+2, jcbollinger wrote:
>
>
>
> On Tuesday, February 12, 2013 5:10:02 AM UTC-6, Andriy Yurchuk wrote:
>>
>> How do I reference my custom created facts (distributed via pluginsync)?
>> I tr
How do I reference my custom created facts (distributed via pluginsync)? I
tried Facter[:custom_fact].value, but this does not seem to work - it
always returns the value for the fact on master.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
T
file resources, then I want all my
nodes to fetch this change.
On Thursday, February 7, 2013 3:53:57 PM UTC+2, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Andriy Yurchuk" >
> > To: puppet...@googlegroups.com
> > Sent: Thursda
I'm using mcollective-puppet-agent (
https://github.com/puppetlabs/mcollective-puppet-agent) to force Puppet
runs on nodes. When running mco puppet runall is there any way I can get
back the status of Puppet execution on each node? Currently, even if
verbosity is enabled, mco does not provide
I've found out that it works if inside the loop I define $item_name = itemand
then reference it as
$item_name in the template.
On Tuesday, February 5, 2013 10:04:14 PM UTC+2, Andriy Yurchuk wrote:
>
> hostclass :class do
> items = scope.lookupvar('items_list')
I ended up implementing this using Puppet Ruby DSL.
--
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 post to this gr
hostclass :class do
items = scope.lookupvar('items_list')
items.each do |item|
file("/etc/init.d/#{item}",
:content => template(['class/item_init.erb']))
end
end
Having this class written in Ruby DSL, how do I properly reference the
itemvariable in the template? I tried <%=
it
ove them
> from deployment.yml. maybe purge attribute can do this.
>
> On Monday, February 4, 2013 7:58:37 PM UTC+8, Andriy Yurchuk wrote:
>>
>> I'm trying to implement a custom recursive directory synchronization
>> resource in Puppet. What I need to do is the foll
I'm trying to implement a custom recursive directory synchronization
resource in Puppet. What I need to do is the following.
I have a YAML file with the list of hostnames and the list of directories
that should exist on each hostname inside, say, `/var/lib/my_app` directory
(`deployment.yml`):
Yes, that was the reason perhaps.
Thanks.
On Sunday, February 3, 2013 10:32:32 PM UTC+2, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Andriy Yurchuk" >
> > To: puppet...@googlegroups.com
> > Sent: Sunday, February 3, 2013
For some unknown reason it works after enabling PuppetDB.
On Sunday, February 3, 2013 8:26:18 PM UTC+2, Andriy Yurchuk wrote:
>
> Here's the function:
>
> module Puppet::Parser::Functions
> newfunction(:fact_to_array, :type => :rvalue) do |args|
> args[0].split(
Here's the function:
module Puppet::Parser::Functions
newfunction(:fact_to_array, :type => :rvalue) do |args|
args[0].split(',')
end
end
Here's the class I'm trying to use it in:
class oms::all_config {
file { '/var/lib/oms/config':
source => 'puppet:///deployment/deployment',
28 matches
Mail list logo