[Puppet Users] Puppet Bolt show diff

2020-01-06 Thread Brent Clark

Good day Guys

In the traditional, master - agent sense, when ever puppet changes a 
file, you would see the "diff/changes" been applied.


Can bolt too show the changes applied?

Regards
Brent

--
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/a90bfbd9-af6b-3221-f7a7-2fcfd23bc329%40gmail.com.


Re: [Puppet Users] Re: Bolt duplicate vagrant nodes issue

2019-12-12 Thread Brent Clark

Thanks so much.

Regards
Brent

On 2019/12/12 18:33, Lucy Wyman wrote:

Hi Brent

The main issue here is not that you have two `- name` calls, it's that 
both nodes have the *same* name '127.0.0.1'. The `name` key must be 
unique for all targets, though alongside it you can define a `uri` key 
which sets the actual uri for the target which does not need to be 
unique. Given this, and that your targets already have human-readable 
names in the 'alias', I think you can just make the 'alias' the 'name', 
and give each target a 'uri' of 127.0.0.1. Additionally, we'll be 
dropping support for version 1 inventories early 2020, so using the 
version 2 inventory will make life a bit easier! You can run 'bolt 
project migrate' to automatically convert the inventory for you - the 
only thing to be aware of is that it will remove comments!


|
version:2

groups:
-name:vagrant_nodes
     groups:
-name:servers
         targets:
-server1
-server2
targets:
-name:server1
     uri:127.0.0.1
     config:
       transport:ssh
       ssh:
         port:2200
         user:vagrant
private-key:/Vagrant_Projects/2_node_ip_manage/.vagrant/machines/server1/virtualbox/private_key
         host-key-check:false
-name:server2
     uri:127.0.0.1
     config:
       transport:ssh
       ssh:
         port:2201
         user:vagrant
private-key:/Vagrant_Projects/2_node_ip_manage/.vagrant/machines/server2/virtualbox/private_key
         host-key-check:false

|



On Thursday, December 12, 2019 at 2:42:56 AM UTC-8, Brent wrote:

Good day Guys

I am trialing puppet bolt.

I have two vagrant instances up and running. Im trying to run bolt
against.

Here in my inventory content.
https://pastebin.com/raw/2aKHbRxH <https://pastebin.com/raw/2aKHbRxH>

The error message I am getting is "Ignoring duplicate node in all"

I think the problem is that I have two '- name'. Could anyone please
assist and advise me on what I need to change.

Regards
Brent Clark

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/4cd06ced-3113-431c-bc0f-49bb6ee3a650%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/4cd06ced-3113-431c-bc0f-49bb6ee3a650%40googlegroups.com?utm_medium=email_source=footer>.


--
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/300f1a06-3d27-9491-2af3-80953efe3239%40gmail.com.


[Puppet Users] Bolt duplicate vagrant nodes issue

2019-12-12 Thread Brent Clark

Good day Guys

I am trialing puppet bolt.

I have two vagrant instances up and running. Im trying to run bolt against.

Here in my inventory content.
https://pastebin.com/raw/2aKHbRxH

The error message I am getting is "Ignoring duplicate node in all"

I think the problem is that I have two '- name'. Could anyone please 
assist and advise me on what I need to change.


Regards
Brent Clark

--
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/e929d31b-bf05-e35d-d3d1-5e1c3ea62b52%40gmail.com.


Re: [Puppet Users] Announce: Puppet agent 1.10.12

2018-04-19 Thread Brent Clark

Good day Eric

Thanks for replying and sorting out the issue.

Regards

Brent


On 18/04/2018 17:19, Eric Sorenson wrote:
Yep, this was an error in the build/ship process - we're scrubbing 
them out now. Sorry for the confusion.


--eric0

On Wednesday, April 18, 2018 at 12:25:23 AM UTC-7, Brent wrote:

Just a question

Shouldn't the puppet 5 packages not be in
http://apt.puppetlabs.com/pool/stretch/PC1/p/puppet-agent/
<http://apt.puppetlabs.com/pool/stretch/PC1/p/puppet-agent/> removed?

Regards

Brent

On 18/04/2018 09:18, Brent Clark wrote:


Good day Guys

Anyone else having a problem where the upgrade tries to jump to
version 5.3.6-1stretch?

I just want 1.10.12RELEASE.

Regards

Brent


On 18/04/2018 07:00, Garrett Guillotte wrote:


Puppet agent 1.10.12 is a bug-fix release that includes updates
for Puppet 4.10.11
<https://puppet.com/docs/puppet/4.10/release_notes.html>, Facter
3.6.10 <https://puppet.com/docs/facter/3.6/release_notes.html>,
Hiera 3.3.3 (which contains no user-facing changes), and
pxp-agent 1.5.7. It also contains updates to curl and fixes for
Ruby security issues. For details, see
https://puppet.com/docs/puppet/4.10/release_notes_agent.html
<https://puppet.com/docs/puppet/4.10/release_notes_agent.html>

There was no public Puppet agent 1.10.11 release.

-- 
*Garrett Guillotte*

Technical Writer
garrett.guillo...@puppet.com <mailto:garrett.guillo...@puppet.com>
-- 
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/puppet-users/CAP7LywFVkyGtvb4_3epVpdJN%2B1gOFzvekxouZrpBVSf26u4ekg%40mail.gmail.com

<https://groups.google.com/d/msgid/puppet-users/CAP7LywFVkyGtvb4_3epVpdJN%2B1gOFzvekxouZrpBVSf26u4ekg%40mail.gmail.com?utm_medium=email_source=footer>.
For more options, visit https://groups.google.com/d/optout
<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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2311bd85-003a-4bda-8bbf-7d8f9cc6f63c%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/2311bd85-003a-4bda-8bbf-7d8f9cc6f63c%40googlegroups.com?utm_medium=email_source=footer>.

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/868bcad1-b1a1-8212-9e6d-0bdb84e15ae4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Announce: Puppet agent 1.10.12

2018-04-18 Thread Brent Clark

Just a question

Shouldn't the puppet 5 packages not be in 
http://apt.puppetlabs.com/pool/stretch/PC1/p/puppet-agent/ removed?


Regards

Brent

On 18/04/2018 09:18, Brent Clark wrote:


Good day Guys

Anyone else having a problem where the upgrade tries to jump to 
version 5.3.6-1stretch?


I just want 1.10.12RELEASE.

Regards

Brent


On 18/04/2018 07:00, Garrett Guillotte wrote:


Puppet agent 1.10.12 is a bug-fix release that includes updates for 
Puppet 4.10.11 
<https://puppet.com/docs/puppet/4.10/release_notes.html>, Facter 
3.6.10 <https://puppet.com/docs/facter/3.6/release_notes.html>, Hiera 
3.3.3 (which contains no user-facing changes), and pxp-agent 1.5.7. 
It also contains updates to curl and fixes for Ruby security issues. 
For details, see 
https://puppet.com/docs/puppet/4.10/release_notes_agent.html


There was no public Puppet agent 1.10.11 release.

--
*Garrett Guillotte*
Technical Writer
garrett.guillo...@puppet.com <mailto:garrett.guillo...@puppet.com>
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAP7LywFVkyGtvb4_3epVpdJN%2B1gOFzvekxouZrpBVSf26u4ekg%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CAP7LywFVkyGtvb4_3epVpdJN%2B1gOFzvekxouZrpBVSf26u4ekg%40mail.gmail.com?utm_medium=email_source=footer>.

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/9c8f99fe-12d9-d628-828c-fab69f580704%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Announce: Puppet agent 1.10.12

2018-04-18 Thread Brent Clark

Good day Guys

Anyone else having a problem where the upgrade tries to jump to version 
5.3.6-1stretch?


I just want 1.10.12RELEASE.

Regards

Brent


On 18/04/2018 07:00, Garrett Guillotte wrote:


Puppet agent 1.10.12 is a bug-fix release that includes updates for 
Puppet 4.10.11 
, Facter 
3.6.10 , Hiera 
3.3.3 (which contains no user-facing changes), and pxp-agent 1.5.7. It 
also contains updates to curl and fixes for Ruby security issues. For 
details, see https://puppet.com/docs/puppet/4.10/release_notes_agent.html


There was no public Puppet agent 1.10.11 release.

--
*Garrett Guillotte*
Technical Writer
garrett.guillo...@puppet.com 
--
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/CAP7LywFVkyGtvb4_3epVpdJN%2B1gOFzvekxouZrpBVSf26u4ekg%40mail.gmail.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/797f3a4e-35bf-4e4e-34c2-a184f5003871%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Debian Stretch?

2017-07-11 Thread Brent Clark
Good day Guys

Does anyone know when Puppetlabs is gonna support Debian Stretch?

Looking at http://apt.puppetlabs.com/

I'm not seeing any Stretch.

Many thank, regards

Brent Clark

-- 
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/26b51eb4-a42b-7bba-f732-6e5fa13627a2%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] class{'apache::mod::pagespeed':} woes

2014-12-09 Thread Brent Clark
Good day Guys.

An interesting challenge.

I'm trying to get mod pagespeed of puppet labs apache module working.

Everything is fine, until I define class{'apache::mod::pagespeed':}

Its kinda like puppet cant seem to find the parent class defined variables.

http://pastebin.com/kmCu0L5H

To just enable the mod (i.e. apache::mod {'pagespeed':}), there is no
problem, but I now need to take management of pagespeed.conf.

Regards
Brent Clark

-- 
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/CAKxYjfby7hM26Y965FLWb2ogaSjB%2Bf%3D53GP8frHbHZg8zzHG5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppetdb 2 does not startup

2014-05-08 Thread Brent Clark
)
com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:95)
clojure.lang.RestFn.invoke (RestFn.java:436)
clojure.lang.Var.invoke (Var.java:388)
clojure.lang.AFn.applyToHelper (AFn.java:160)
clojure.lang.Var.applyTo (Var.java:700)
clojure.core$apply.invoke (core.clj:624)
clojure.main$main_opt.invoke (main.clj:315)
clojure.main$main.doInvoke (main.clj:420)
clojure.lang.RestFn.invoke (RestFn.java:482)
clojure.lang.Var.invoke (Var.java:401)
clojure.lang.AFn.applyToHelper (AFn.java:171)
clojure.lang.Var.applyTo (Var.java:700)
clojure.main.main (main.java:37)

Kind Regards
Brent Clark

--
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/536B7BCE.5060808%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppetdb 2 does not startup

2014-05-08 Thread Brent Clark

Good days Guys

Thank you *ever* so much.

The issue is resolved.

Kind Regards
Brent Clark

On 08/05/2014 14:46, Ryan Senior wrote:

Hi Brent,

Check the release notes here: 
https://github.com/puppetlabs/puppetdb/blob/stable/documentation/release_notes.markdown. 
We've changed the log file config location, which I think is the 
problem you're running into.


-Ryan


On Thu, May 8, 2014 at 7:42 AM, Brent Clark brentgclarkl...@gmail.com 
mailto:brentgclarkl...@gmail.com wrote:


Hiya

I was forced to downgrade my puppetdb as version 2 was giving the
the following:
Anyone have a clue as to what is going wrong?

root@puppet01 /etc/puppet # puppetdb foreground
ch.qos.logback.core.joran.spi.JoranException: Problem parsing XML
document. See previously reported errors.
 at ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents
(SaxEventRecorder.java:67)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:134)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:99)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:76)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:68)
sun.reflect.NativeMethodAccessorImpl.invoke0
(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke (Method.java:606)
clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
puppetlabs.trapperkeeper.logging$configure_logger_via_file_BANG_.invoke
(logging.clj:81)
   
puppetlabs.trapperkeeper.logging$configure_logging_BANG_.invoke

(logging.clj:90)
   
puppetlabs.trapperkeeper.config$initialize_logging_BANG_.invoke

(config.clj:103)
puppetlabs.trapperkeeper.core$boot_with_cli_data.invoke
(core.clj:111)
puppetlabs.trapperkeeper.core$run.invoke (core.clj:145)
puppetlabs.trapperkeeper.core$main.doInvoke (core.clj:160)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invoke (core.clj:624)
com.puppetlabs.puppetdb.cli.services$_main.doInvoke
(services.clj:365)
clojure.lang.RestFn.invoke (RestFn.java:421)
clojure.lang.Var.invoke (Var.java:383)
clojure.lang.AFn.applyToHelper (AFn.java:156)
clojure.lang.Var.applyTo (Var.java:700)
clojure.core$apply.invoke (core.clj:624)
com.puppetlabs.puppetdb.core$run_command.invoke (core.clj:87)
com.puppetlabs.puppetdb.core$_main.doInvoke (core.clj:95)
clojure.lang.RestFn.invoke (RestFn.java:436)
clojure.lang.Var.invoke (Var.java:388)
clojure.lang.AFn.applyToHelper (AFn.java:160)
clojure.lang.Var.applyTo (Var.java:700)
clojure.core$apply.invoke (core.clj:624)
clojure.main$main_opt.invoke (main.clj:315)
clojure.main$main.doInvoke (main.clj:420)
clojure.lang.RestFn.invoke (RestFn.java:482)
clojure.lang.Var.invoke (Var.java:401)
clojure.lang.AFn.applyToHelper (AFn.java:171)
clojure.lang.Var.applyTo (Var.java:700)
clojure.main.main (main.java:37)
Caused by: org.xml.sax.SAXParseException: Content is not allowed
in prolog.
 at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1239)
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse
(SAXParserImpl.java:649)
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse
(SAXParserImpl.java:333)
ch.qos.logback.core.joran.event.SaxEventRecorder.recordEvents
(SaxEventRecorder.java:61)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:134)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:99)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:76)
ch.qos.logback.core.joran.GenericConfigurator.doConfigure
(GenericConfigurator.java:68)
sun.reflect.NativeMethodAccessorImpl.invoke0
(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke (Method.java:606)
clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
puppetlabs.trapperkeeper.logging$configure_logger_via_file_BANG_.invoke
(logging.clj:81)
   
puppetlabs.trapperkeeper.logging

[Puppet Users] Is it possible to specify more than two search items in a Resource Collectors tag?

2014-03-07 Thread Brent Clark

Good day Guys.

Is it possible to specify more than two search items in a Resource 
Collectors tag?


e.g.
@@nagios_service {${::chshostname}_${name}:
  ensure= present,
  check_command= $command,
  host_name = $::chshostname,
  servicegroups= $t_group,
  service_description = $t_service_description,
  use = $use_template,
  target = $t_target,
  tag  = [$t_tag,$nagios::param::nagiosdc]
}

Nagios_service | tag == [$t_tag,$nagios::param::nagiosdc] | {
  notify  = Service['nagios3'],
  require = Package['nagios3'],
}

I need to puppet to search for a particular service in a particular 
datacentre.


Regards
Brent

--
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/5319B469.3000406%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] 3.3.2 puppet master : rubygems issue

2013-12-11 Thread Brent Clark

Good day guys.

I just built a new 3.3.2 puppet master.

What is interesting is I get the following message.

Error: Could not retrieve catalog from remote server: Error 400 on 
SERVER: You need rubygems to use Hiera at 
/etc/puppet/manifests/nodes.pp:8 on node chs-puppet01.rest.commented.out

Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

But I have rubygems installed.
root@chs-puppet01 /etc/apache2/mods-enabled # dpkg -l | grep rubygems
ii  rubygems   1.8.24-1  all 
 package management framework for Ruby libraries/applications


I then thought, maybe i needed the package hiera-puppet. But when I try 
and install, I get:

root@chs-puppet01 /etc/apache2/mods-enabled # aptitude install hiera-puppet
The following NEW packages will be installed:
  hiera-puppet
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.7 kB of archives. After unpacking 119 kB will be used.
The following packages have unmet dependencies:
 puppet-common : Conflicts: hiera-puppet but 1.0.0-1puppetlabs1 is to 
be installed.

The following actions will resolve these dependencies:
 Keep the following packages at their current version:
1) hiera-puppet [Not Installed]

If anyone can assist, it would be appreciated.

Kind Regards
Brent Clark

--
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/52A86873.5040203%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Error Messgae : Option puppetdb-host conflicts with existing option puppetdb-host

2013-11-22 Thread Brent Clark
Good day.

I just installed the pupppet module puppetdbquery

Im now getting this message on my servers.

Could not load downloaded file /var/lib/puppet/lib/puppet/face/query.rb:
Option puppetdb-host conflicts with existing option puppetdb-host

Anyone experience this issue before

Kind Regards
Brent Clark

-- 
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/52904005.8060706%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Facter fact appears to be a string and not an array.

2013-05-15 Thread Brent Clark

Good day

I wrote my own fact for facter. And as you can see from my copy and 
paste it appears to be working.


disk = [/dev/sda, /dev/sdb]
disk_count = 2

The problem I appear to have is. This is the code for my template.

%- @disk.each do |dev| %
  disk %= dev %
%- end %

And the result I get back is/

+
+disk /dev/sda/dev/sdb
+

as opposed to

disk /dev/sda
disk /dev/sdb

Would anyone know why I am getting a string as opposed to an array.

Another question, if you dont mind. Is there a reason why the interfaces 
fact is a string and not an array?

interfaces = eth0,eth1,lo

Kind Regards
Brent Clark

--
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 group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Puppet / hiera call a parametrised class from hieras yaml file?

2013-04-16 Thread Brent Clark

Good day

Im using puppet 2.7.18 and hiera 1.1.0.

I would like to ask.

For some servers I manage I use the following to pull in 'custom classes'.
hiera_include('classes')

And it all works very well.

But Im now have a class that I now need to class via hiera, and pass 
arguments too (the argument, really is where the clients DKIM keys reside).


Can I have puppet / hiera call a parametrised class from hieras yaml file.

Thanks
Brent Clark

--
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 group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] mcollective and aptitude safe-upgrade

2012-12-13 Thread Brent Clark

Guys

Compliments of the festive season to everyone.

Ive looked at mcollective plugins from 
http://projects.puppetlabs.com/projects/mcollective-plugins/wiki


And I tried / installed some of them. What im looking for is a method or 
really a mcollective plugin to 'aptitude safe-upgrade' on my test VMs. 
Would anyone have a solution or method on how I can go about this.


The only other solution I can think of, is to use capistrano (which is 
the reason for this email, as im not entirely satisfied with that 
solution) and then have puppet manage my public key.


Kind Regards
Brent Clark





--
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 from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Puppet own function

2012-10-18 Thread Brent Clark

Good day.

Im trying to make my own function. I keep getting this message.

err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Function 'brent_k' does not return a value at 
/etc/puppet/modules/munin/manifests/init.pp:17 on node XYZ.com

Here is my simple code

xyz.com:/etc/puppet/modules/munin/lib/puppet/parser/functions# cat brent_k.rb
  module Puppet::Parser::Functions
newfunction(:brent_k, :type = :rvalue) do |args|
  val = 'ok'
  val
end
  end

And then in my manifest, I have

   $a = brent_k()

I tried return val too.

Thanks if you can help
Brent

--
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 from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] PHP modules

2012-10-16 Thread Brent Clark

Good day.

I would like to ask. Does anyone have an elegant way to manage the PHP modules 
that are not available via a repository, and that can only be installed via 
pecl or pear.

Ideally, it would actually be better if Debians dh-make-(pear|pecl) was 
actually used in the manifest.

Github is not is not able to help.

Kind Regards
Brent Clark

--
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 from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Automate adding new host to nagios server?

2012-10-12 Thread Brent Clark

On 11/10/2012 17:48, Bernd Adamowicz wrote:

See:

* http://docs.puppetlabs.com/guides/exported_resources.html  or
* http://www.bernd-adamowicz.de/12/puppet-stored-configurations-and-icinga/

Cheers,
Bernd


Sir

Thank you so much.

Kind Regards
Brent Clark

--
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 from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Automate adding new host to nagios server?

2012-10-11 Thread Brent Clark

Good day

I was wondering if someone could help me.

Say I have three servers. One puppet master, one webserver, and one nagios 
server.

Is there a way to automate the process of adding the web server to the nagios 
server for monitoring via a puppet.

If someone could assists, or suggest a better means, it would be appreciated.

Kind Regards
Brent Clark

--
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 from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Puppet warning error messages after upgrading to version 3

2012-10-03 Thread Brent Clark

Good day

I seem to have a problem whereby, I get the following message when I do 
a puppet run.


Warning: Unable to fetch my node definition, but the agent run will 
continue:
Warning: Could not intern from pson: source '#Puppet::Node:0x7f' not 
in PSON!


I did google and I came across this for the second error message.

http://projects.puppetlabs.com/issues/3160#note-7

I did make the mistake of first upgrading the client to version 3 on one 
of my test hosts. But then after seeing the above message, I upgraded 
the puppet master.

But the above error message is still present.

If someone could shed some light, it would gratefully be appreciated.

Kind regards
Brent Clark

--
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 from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Recipe for Debians MySQL

2010-08-10 Thread Brent Clark
Hiya

Would anyone have a recipe for Debian's MySQL. Thats to install and
configure (i.e. root password).

Kind Regards
Brent Clark

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.