[Puppet Users] Re: Puppet Console Groups - Node pattern match

2013-10-18 Thread James Trier
Solved my issue by getting the regex right but I'd still like know other 
options for automating the collection of nodes into a group via the 
console. If anyone has some pointers.

On Friday, October 18, 2013 5:04:13 PM UTC-7, James Trier wrote:
>
> Hi,
>
> I want to use the Groups feature in the console to setup a pattern match 
> on "hostname" for a node so that they get all the classes assigned to that 
> group. I'm currently doing this through the nodes/nodes.pp file for a set 
> of simple named hosts (example of my regex in the nodes.pp below) but now I 
> need to expand this a bit and I'm not a regex guy and I can't the regex 
> right so I was hoping there was an easier way to match node name strings in 
> the console.
>
> node /^hostname\d+$/ {
> include 
> }
>
> Basically, I'm looking for something like, match anything that starts with 
> web and ends with two digits.
>
> Thanks
>
> James
>
>

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


[Puppet Users] Roles with PE and other ENCs?

2013-10-18 Thread Chris Barbour
Hi,

I'm interested in getting some feedback from the community. What are your 
thoughts on using roles with a good external node classifier such as Puppet 
Enterprise?

With our without an ENC, profiles make absolute sense as a place to inject 
data and for grouping independent classes into functional assemblies.

However, most node classifiers provide an easy way to group those profiles 
into an assembled product. For example, with PE we could eliminate roles 
entirely, and instead use groups to pull profiles together into an 
assembled system.

The advantage I see with this approach is that it could make it easier for 
consumers of PE to modify or create new roles. A checkin/deploy cycle for 
the code would not be necessary.

The disadvantage I see is that this somewhat changes the roles/profiles 
paradigm, and would create a dependency on the ENC. It would also remove 
the roles from the RCS, which would potentially change or break the 
auditing process.

Thoughts?

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


[Puppet Users] Ignore a failed dependency

2013-10-18 Thread Bryan Traywick
I have a general question and a specific question that are related.

The general question: Is it possible to have the dependencies (commands 
that "require") of a command execute even if the command fails? Meaning 
create a sort of soft dependency where I would like the command to be 
performed but if it fails execute the things that depend on it anyway.

Specifically: I have an 'Exec' that runs 'apt-get update'. Several commands 
'require' this 'Exec' (e.g. ensuring that a package is installed). However, 
after an initial provisioning it's not absolutely necessary that 'apt-get 
update' gets run since those packages will be installed already. The 
'apt-get update' is failing occasionally due to a slightly unreliable apt 
repo. I'd like all of the dependent tasks to execute after the 'apt-get 
update', but still execute even if it fails. Ideally I would like to be 
able to have an attribute on an 'Exec' (or really any puppet type) that 
says that it may fail and to just display a warning. As far as I can tell, 
such a attribute doesn't exist.

My current thought is to set up a dummy Exec that just runs 'true', but 
have it notify another Exec that performs the real 'apt-get update'. 
Something like this (untested):

exec { "apt-get update":
  command => "true",
  notify => Exec["real apt-get update"]
}

exec { "real apt-get update":
  command => "apt-get update"
}

Will this approach work in the way I intend? Commands that want a "soft" 
dependency on "apt-get update" will `require => Exec["apt-get update"]` 
which will always succeed but as a side effect perform the "real apt-get 
update" command. Will the `notify` cause "real apt-get update" to be 
performed during every deploy? And will the dependency/ordering graph be 
built such that "real apt-get update" gets executed before any of the other 
commands that `require => Exec["apt-get update"]`?

This also brings up a third question that I thought of while formulating my 
thoughts for this question: Why are dependency and ordering linked in 
puppet? It seems to me that ideally there should be a way to specify that 
command A is performed before command B without making command B depend on 
command A. For example:

exec { "apt-get update":
  command => "true"
}
exec { "real apt-get update":
  command => "apt-get update",
  before => Exec["apt-get update"]
}

I should be able to use "before" or "after" to specify ordering and 
"require" to specify dependence. If I'm missing something fundamental here 
about dependencies and ordering (or if I am fighting the paradigm) I'd 
appreciate the enlightenment.

Thanks for your help,

-- Bryan Traywick

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


[Puppet Users] Running Module assitant in puppet

2013-10-18 Thread Mani Devarajan
Hello,
 For my puppet workflow, i need to run "module-assistant auto-install 
openvswitch-datapath". Which resource type will be best to execute this 
command.
 Should i use Exec resource type. Can you please suggest what will be the 
best way to implement this.

 Appreciate your response.

Thanks in advance,
Mani

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


[Puppet Users] Puppet Console Groups - Node pattern match

2013-10-18 Thread James Trier
Hi,

I want to use the Groups feature in the console to setup a pattern match on 
"hostname" for a node so that they get all the classes assigned to that 
group. I'm currently doing this through the nodes/nodes.pp file for a set 
of simple named hosts (example of my regex in the nodes.pp below) but now I 
need to expand this a bit and I'm not a regex guy and I can't the regex 
right so I was hoping there was an easier way to match node name strings in 
the console.

node /^hostname\d+$/ {
include 
}

Basically, I'm looking for something like, match anything that starts with web 
and ends with two digits.

Thanks

James

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


[Puppet Users] Re: 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca

2013-10-18 Thread Havary
I solved de problem. I dont use the best way, but worked.

on the client: rm -rf /etc/puppet/ssl/*
on the server rm -rf /var/lib/puppet/ssl/*

yes I know, I deleted all cert files of all servers. After that a sign all 
the certs.

--thank

Em sexta-feira, 18 de outubro de 2013 15h45min10s UTC-3, Havary escreveu:
>
> Hi, ppl
>
> I dont know what to do.
> I configure a new client do sync with my server. the server accept de 
> client_cert without errors and then when i run the "puppet agent -t" agaion 
> i got this error output
>
> info: Retrieving plugin
> err: /File[/var/lib/puppet/lib]: Failed to generate additional resources 
> using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read 
> server session ticket A: tlsv1 alert unknown ca
> err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect 
> returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert 
> unknown ca Could not retrieve file metadata for 
> puppet://gfn-puppetmaster/plugins: SSL_connect returned=1 errno=0 
> state=SSLv3 read server session ticket A: tlsv1 alert unknown ca
> err: Could not retrieve catalog from remote server: SSL_connect returned=1 
> errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca
> warning: Not using cache on failed catalog
> err: Could not retrieve catalog; skipping run
> err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 
> read server session ticket A: tlsv1 alert unknown ca
>
> What i already checked the /etc/config of the client and de server. And 
> the config files, but maybe i m missing something.
>
> Could you help me, thank.
>
> *## Client config*
> *- hosts*
> .
> *192.168.0.112 doforte.geofusion doforte
> 192.168.0.107 gfn-puppetmaster*
> .
> *-puppet.config*
> *[agent]
> certname = generic-gfn-puppetmaster.pem
> certificate_revocation = false
> ssl_client_header = SSL_CLIENT_S_DN
> ssl_client_verify_header = SSL_CLIENT_VERIFY
> server = gfn-puppetmaster
> report = true
> pluginsync = true
> certname = doforte.geofusion*
>
> *### Server config*
> *-host*
> ...
> *192.168.0.107   gfn-puppetmaster
> 192.168.0.112   doforte.geofusion doforte*
> ...
> *-puppet.config*
> *[main]
> logdir=/var/log/puppet
> vardir=/var/lib/puppet
> ssldir=/var/lib/puppet/ssl
> rundir=/var/run/puppet
> factpath=$vardir/lib/facter
> templatedir=$confdir/templates
> prerun_command=/etc/puppet/etckeeper-commit-pre
> postrun_command=/etc/puppet/etckeeper-commit-post
>
> [master]
> # These are needed when the puppetmaster is run by passenger
> # and can safely be removed if webrick is used.
> ssl_client_header = SSL_CLIENT_S_DN
> ssl_client_verify_header = SSL_CLIENT_VERIFY
> server = gfn-puppetmaster
> report = true
> pluginsync = true
> certname = gfn-puppetmaster*
>
> Thank you very much!
>
>
>

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


[Puppet Users] Re: installing a package nmap on ubuntu

2013-10-18 Thread Ellison Marks
What version of ubuntu are you running. This type of thing crops up in the 
older/unsupported versions, IIRC.

On Friday, October 18, 2013 12:30:37 AM UTC-7, kampy wrote:
>
> Hi, i am new to puppet please help me how to resolve this issue. 
> below is my script 
> class nmap {
> package { 'nmap':
> ensure => installed,
> }
>
> }
> include nmap
>
> below is the error it is failing 
>
> err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present 
> failed: Execution of '/usr/bin/apt-get -q -y -o 
> DPkg::Options::=--force-confold install nmap' returned 100: Reading package 
> lists...
> Building dependency tree...
> Reading state information...
> The following NEW packages will be installed:
>   nmap
> 0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
> Need to get 1643 kB of archives.
> After this operation, 6913 kB of additional disk space will be used.
> WARNING: The following packages cannot be authenticated!
>   nmap
> E: There are problems and -y was used without --force-yes
>
> notice: Finished catalog run in 1.16 seconds
>
> please help in understanding what i am missing here to install this package
>
> Thanks in advance 
>
> Regards,
> kampy
>
>

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


[Puppet Users] Re: installing a package nmap on ubuntu

2013-10-18 Thread Sans
What you get running this:

/usr/bin/apt-get -y -o DPkg::Options::=--force-confold install nmap
>
>
on the agent? Cheers!!



On Friday, October 18, 2013 8:30:37 AM UTC+1, kampy wrote:
>
> Hi, i am new to puppet please help me how to resolve this issue. 
> below is my script 
> class nmap {
> package { 'nmap':
> ensure => installed,
> }
>
> }
> include nmap
>
> below is the error it is failing 
>
> err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present 
> failed: Execution of '/usr/bin/apt-get -q -y -o 
> DPkg::Options::=--force-confold install nmap' returned 100: Reading package 
> lists...
> Building dependency tree...
> Reading state information...
> The following NEW packages will be installed:
>   nmap
> 0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
> Need to get 1643 kB of archives.
> After this operation, 6913 kB of additional disk space will be used.
> WARNING: The following packages cannot be authenticated!
>   nmap
> E: There are problems and -y was used without --force-yes
>
> notice: Finished catalog run in 1.16 seconds
>
> please help in understanding what i am missing here to install this package
>
> Thanks in advance 
>
> Regards,
> kampy
>
>

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


[Puppet Users] 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca

2013-10-18 Thread Havary
Hi, ppl

I dont know what to do.
I configure a new client do sync with my server. the server accept de 
client_cert without errors and then when i run the "puppet agent -t" agaion 
i got this error output

info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Failed to generate additional resources 
using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read 
server session ticket A: tlsv1 alert unknown ca
err: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 
errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca 
Could not retrieve file metadata for puppet://gfn-puppetmaster/plugins: 
SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: 
tlsv1 alert unknown ca
err: Could not retrieve catalog from remote server: SSL_connect returned=1 
errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
err: Could not send report: SSL_connect returned=1 errno=0 state=SSLv3 read 
server session ticket A: tlsv1 alert unknown ca

What i already checked the /etc/config of the client and de server. And the 
config files, but maybe i m missing something.

Could you help me, thank.

*## Client config*
*- hosts*
.
*192.168.0.112 doforte.geofusion doforte
192.168.0.107 gfn-puppetmaster*
.
*-puppet.config*
*[agent]
certname = generic-gfn-puppetmaster.pem
certificate_revocation = false
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
server = gfn-puppetmaster
report = true
pluginsync = true
certname = doforte.geofusion*

*### Server config*
*-host*
...
*192.168.0.107   gfn-puppetmaster
192.168.0.112   doforte.geofusion doforte*
...
*-puppet.config*
*[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
server = gfn-puppetmaster
report = true
pluginsync = true
certname = gfn-puppetmaster*

Thank you very much!


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


Re: [Puppet Users] Windows 8.1 Puppet Crashing

2013-10-18 Thread Rob Reynolds
That is interesting. It appears that the log output is not showing up on
your console. What console are you using? Can you verify this is happening
on more than one machine?


On Fri, Oct 18, 2013 at 7:27 AM, Jason Bray  wrote:

> Well, that is exactly the issue. It doesn't appear to crash in a visible
> way, there is simply no output for any command I give it. Although, every
> once in a while, it appears to work normally and shows output as expected.
> 90% of the time, the command hangs for a second or two then returns me to
> the command prompt with no output whatsoever.
>
> For example
>
> C:\Scratch> puppet apply test.pp --debug --verbose --trace
>
> C:\Scratch>
>
>
> Actually to make it even weirder, I think I might have been wrong about it
> crashing. For example when I run a simple manifest,
>
> file { 'C:\Scratch\foo.txt':
>   ensure => present,
>   content => 'bar,
> }
>
> The command prompt looks like this:
>
> C:\Scratch> puppet apply test.pp --debug --verbose --trace
>
> C:\Scratch>
>
> However, when I do a dir, I see that the file has indeed been created.
>
>
> On Thursday, October 17, 2013 3:48:41 PM UTC-4, Rob Reynolds wrote:
>
>> Jason,
>>  Sorry, I meant applying a catalog or running something that causes
>> puppet to crash in a visible way. Apologies for the miscommunication.
>>
>>
>> On Thu, Oct 17, 2013 at 12:58 PM, Jason Bray  wrote:
>>
>>> Of course, sorry.
>>>
>>> Puppet 3.3.1 installed from an MSI, I believe the ruby version is 1.9.2,
>>> but I'm not 100% on that.
>>>
>>> As for the output, literally it has no output at all.
>>>
>>> For example
>>>
>>> C:\Scratch> puppet help --verbose --debug --trace
>>>
>>> C:\Scratch>
>>>
>>> With only a moment's delay between the two.
>>>
>>> --
>>> 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 post to this group, send email to puppet...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/puppet-users
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>
>>
>>
>> --
>> Rob Reynolds
>> Developer, Puppet Labs
>>
>> Join us at PuppetConf 2014, September 23-24 in San Francisco
>>
>  --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco

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


Re: [Puppet Users] Can't find a supported method of using storeconfigs on AWS

2013-10-18 Thread Deepak Giridharagopal
On Fri, Oct 18, 2013 at 7:30 AM, Daniel Friesen
wrote:

> I can't seem to find a sane way of running storeconfigs on the new AWS
> server environment I'm working on.
>
>
>- SQLite is not an option. It becomes unusable far too quickly.
>
> What do you mean, exactly? It isn't handling your volume, you see errors,
it's too slow? That would help us understand your use case better.

>
>- Using a mysql adapter doesn't seem to work properly.
>   - I quickly run into bug 
> #9290again and again. Which after 
> 2 years STILL hasn't been fixed.
>   - The top of 
> thisseems
>  to imply that these ActiveRecord storeconfigs adapters are being
>   deprecated.
>
> Correct, they've been deprecated for over a year.


>
>- The recommendation seems to be to use PuppetDB however from the
>looks of it, I can't even use PuppetDB.
>
>
>- I'm not going to use the embedded DB and fall right back into the
>   trap with SQLite again.
>
> The PuppetDB embedded DB is approximately a zillion times faster than
ActiveRecord+sqlite, so you may want to reconsider giving it a shot. The
limitation is around how much memory is required for the embedded DB, which
is largely dependent on how many nodes you have (see the docs for sizing
information). How large is your deployment?

In a nutshell, if you have the RAM, it should be entirely functional (we
test against it on literally every commit we do). Note that this isn't
memory used by the puppetmaster; you could have this on its own EC2 node
that's sized differently if you like.


>
>- PuppetDB only appears to support PostgreSQL and does not support
>   MySQL.
>
> The only maintained backends currently are PG and the embedded db, yes.


>
>- I already have a MySQL database in AWS' RDS I would like to use. And
>   RDS does not support PostgreSQL.
>
>
>- And I am NOT going to go right back to going and installing a
>   separate database server on the local node. That kind of thing has 
> given me
>   problem after problem.
>
> What are the exact problems you've had? Without specifics, it's somewhat
difficult for us to offer assistance.


> Please tell me I'm missing something and there's a way I can get this to
> work in this AWS environment. Cause otherwise the idea of puppet running
> any type of server at all – rather than simply working as a local
> filesystem `puppet apply` – looks so unreliable (as I've also had some
> issues with the puppetmaster) that I should just dump every bit of
> server/client software puppetlabs has and write my own custom way of
> distributing configs and data.
>
We're here to help, but you should of course choose whatever option you
feel best meets your needs.

deepak


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

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


[Puppet Users] Announce: Module puppetlabs/puppetdb 2.0.0 Available

2013-10-18 Thread Ken Barber
A new release of the puppetlabs/puppetdb module is now available on the Forge:

https://forge.puppetlabs.com/puppetlabs/puppetdb/2.0.0

This major release changes the main dependency for the inifile module
from the deprecated `cprice404/inifile` to `puppetlabs/inifile` to
remove deprecation warnings and to move onto the latest and greatest
implementation of that code.

Its a major release, because it may affect other dependencies since
modules cannot have overlapping second part dependencies (that is
inifile cannot be from two different locations).

It also adds the parameter `puppetdb_service_status` to the class
`puppetdb` to allow users to specify whether the module manages the
puppetdb service for you.

The `database_password` parameter is now optional, and initial Arch
Linux support has been added.

Thanks again to the community contributors listed below :-).

Changes
-

* (GH-73) Switch to puppetlabs/inifile from cprice/inifile (Ken Barber)
* Make database_password an optional parameter (Nick Lewis)
* add archlinux support (Niels Abspoel)
* Added puppetdb service control (Akos Hencz)

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


Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-18 Thread Sans
Thanks John! 
That's it! feel myself like the biggest stupid in the world!
Thanks every one for the help. It's working just fine now. Cheers!!



On Friday, October 18, 2013 2:24:29 PM UTC+1, jcbollinger wrote:
>
>
>
> *Be sure to restart your master after modifying any custom functions.  If 
> you have not done so, then the master might not see the changes.**
> *
> [ .]
> John
>
>

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


[Puppet Users] Dashboard failed tasks

2013-10-18 Thread Dwayne Lee
Hey All,

I see that a number of Admins have experienced this same issue, but no one 
has posted a workable solution.  I have about 200 agents, but on any given 
day I'll see 5-10 failed tasks in Dashboard as follows:

*Importing report report-21248-180.yaml* at 10-18-2013 11:10 EDTValidation 
failed: Host already has a report for time and kind
Backtrace 
/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/validations.rb:1101:in
 
`save_without_dirty!'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/dirty.rb:87:in
 
`save_without_transactions!'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in
 
`save!'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in
 
`transaction'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in
 
`transaction'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in
 
`save!'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:208:in
 
`rollback_active_record_state!'/var/www/html/puppet-dashboard/vendor/rails/activerecord/lib/active_record/transactions.rb:200:in
 
`save!'/var/www/html/puppet-dashboard/app/models/report.rb:113:in 
`create_from_yaml'/var/www/html/puppet-dashboard/app/models/report.rb:86:in 
`create_from_yaml_file'

Please help!

Thanks.

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


Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-18 Thread Dwayne Lee
I had issues with custom facts returning errors and or not finding the 
custom facts until I created an additional module called "facterpath". 
 Here is the init.pp:

# /etc/puppet/modules/facterpath/manifests/init.pp
class facterpath {
file { "/etc/profile.d/facter.sh":
owner => 'root',
group => 'root',
mode  => '0644',
source => "puppet:///files/etc/profile.d/facter.sh",
}
}

It simply pushes a facter.sh file to /etc/profile.d on all of my agents. 
 Here's the file that gets pushed:

# cat /etc/profile.d/facter.sh
export FACTERLIB=$FACTERLIB:/var/lib/puppet/lib/facter

So now when I log in the facter library becomes part of my ENV and no more 
issues in using the custom facts on my agents.

*

On Sunday, October 13, 2013 6:18:46 AM UTC-4, Martin Alfke wrote:
>
> Hi, 
>
> On 13.10.2013, at 10:57, Sans > wrote: 
>
> > [...] 
>
> > The file is on the PuppetMaster. Hence the custom fact 'am_running_oss' 
> is not available or empty when it runs on the agent. What are the options I 
> have to make the custom facts(s) available on every single puppet agent? 
> Thanks in advance. Cheers!! 
> > 
>
> You have to put the fact inside the lib/facter directory of a module and 
> you have to enable pluginsync on all nodes puppet.conf. 
> http://docs.puppetlabs.com/guides/plugins_in_modules.html 
>
> hth, 
>
> Martin 
>
>
>
>

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


[Puppet Users] Puppet reports filenames

2013-10-18 Thread Dwayne Lee
Hey All,

I'm wondering why my YAML files have filenames which are 4 hours off from 
the actual time.  For example, the file created below at 10:13am has a 
filename which would indicate it being created at 2:13pm (off by 4 hours).  

-rw-r- 1 puppet puppet 26047 Oct 18 10:13 
/var/lib/puppet/reports//201310181413.yaml

Is there a reason for this or do I have a setting wrong somewhere? 
 Everything is working correctlyit just bugs me that they are wrong.

Thanks for the help!

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


[Puppet Users] Can't find a supported method of using storeconfigs on AWS

2013-10-18 Thread Daniel Friesen
I can't seem to find a sane way of running storeconfigs on the new AWS 
server environment I'm working on.


   - SQLite is not an option. It becomes unusable far too quickly.
   - Using a mysql adapter doesn't seem to work properly.
  - I quickly run into bug 
#9290again and again. Which after 2 
years STILL hasn't been fixed.
  - The top of 
thisseems
 to imply that these ActiveRecord storeconfigs adapters are being 
  deprecated.
   - The recommendation seems to be to use PuppetDB however from the looks 
   of it, I can't even use PuppetDB.
  - I'm not going to use the embedded DB and fall right back into the 
  trap with SQLite again.
  - PuppetDB only appears to support PostgreSQL and does not support 
  MySQL.
  - I already have a MySQL database in AWS' RDS I would like to use. 
  And RDS does not support PostgreSQL.
  - And I am NOT going to go right back to going and installing a 
  separate database server on the local node. That kind of thing has given 
me 
  problem after problem.
   
Please tell me I'm missing something and there's a way I can get this to 
work in this AWS environment. Cause otherwise the idea of puppet running 
any type of server at all – rather than simply working as a local 
filesystem `puppet apply` – looks so unreliable (as I've also had some 
issues with the puppetmaster) that I should just dump every bit of 
server/client software puppetlabs has and write my own custom way of 
distributing configs and data.

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


Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-18 Thread jcbollinger


On Thursday, October 17, 2013 8:21:28 AM UTC-5, Sans wrote:
>
> It's strange: whatever I do I can't go past these error. Either it cannot 
> recognize the function or fails with  single array error. Still don't 
> understand what I'm missing. Cheers!!
>
>
> On Thursday, October 17, 2013 1:34:26 AM UTC+1, Sans wrote:
>>
>> Not sure if it's important: the line number in the error message points 
>> to the line in the .pp file where  "$h = am_running_oss()" is defines. 
>> If I change that line with "am_running_oss_hash('/tmp/OSs.txt')" it 
>> works just fine. Cheers!!
>>
>

What if you use

$h = am_running_oss(1)

(or replace the 1 with any other value)?  Puppet shouldn't break when the 
argument list is empty, but perhaps you've stumbled on a bug.


John

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


Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-18 Thread jcbollinger


On Wednesday, October 16, 2013 7:34:26 PM UTC-5, Sans wrote:
>
> Not sure if it's important: the line number in the error message points to 
> the line in the .pp file where  "$h = am_running_oss()" is defines. If I 
> change that line with "am_running_oss_hash('/tmp/OSs.txt')" it works just 
> fine. Cheers!!
>
>

Be sure to restart your master after modifying any custom functions.  If 
you have not done so, then the master might not see the changes.

The error you posted should arise only in the context of a native plugin 
trying to call a Puppet function, and the only place where your code does 
that is this line:

oss = function_am_running_oss_hash(['/tmp/OSs.txt'])

That is correct as it stands, but if a previous version of the code omitted 
the square brackets then it would cause such an error.

John


 

>
>
>
> On Wednesday, October 16, 2013 10:37:19 PM UTC+1, Cristian Falcas wrote:
>>
>> sorry, i didn't see that you already did that. I will try to respond 
>> again more meaningful in the morning 
>>
>>
>>

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


Re: [Puppet Users] Re: 'puppet storeconfigs export' killed

2013-10-18 Thread Roger Torrentsgenerós

Done

http://projects.puppetlabs.com/issues/22912

On Thursday, October 17, 2013 10:40:12 AM UTC+2, Ken Barber wrote:
>
> Roger, 
>
> Can you raise this as a bug in our bug tracker? 
>
> http://projects.puppetlabs.com/projects/puppetdb 
>
> ken. 
>
> On Wed, Oct 16, 2013 at 9:23 AM, Roger Torrentsgenerós 
> > 
> wrote: 
> > 
> > Well I finally did it. 
> > 
> > First thing to do is to specify a timezone to avoid the massive amount 
> of: 
> > 
> > 
> > 17169 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) 
> = 0 
> > 
> > Issuing '# export TZ=:/etc/localtime' prior to launching the Puppet face 
> is 
> > enough. 
> > 
> > Then, in my particular case I had to use a VM with 42GB of RAM to deal 
> with 
> > a 1.4GB MySQL database. After more than 2 hours of processing, a .tgz 
> file 
> > with the ridiculous size of 1.7MB was created. 
> > 
> > So if your export process gets killed and you see OOM messages in your 
> > dmesg, you'll need more RAM in your server. 
> > 
> > Roger 
> > 
> > 
> > On Friday, October 11, 2013 2:21:12 PM UTC+2, Roger Torrentsgenerós 
> wrote: 
> >> 
> >> 
> >> Just an update. This is what strace shows at the point where the 
> process 
> >> finishes fetching data from the MySQL database: 
> >> 
> >> 17169 read(4, "38:31\373\373\0232013-07-15 17:38:32\373\023201"..., 
> 16384) 
> >> = 384 
> >> 17169 read(4, "3:00:07\0074113192\27xavier.ofi.softo"..., 16384) = 
> 16000 
> >> 17169 read(4, "305566\17some.user\003194\00222\00741"..., 16384) = 384 
> >> 17169 read(4, "192\0232013-04-02 16:11:44\0232013-04-"..., 16384) = 
> 8534 
> >> 17169 gettimeofday({1381493430, 91178}, NULL) = 0 
> >> 17169 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 
> >> 17169 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 
> >> 17169 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 
> >> 17169 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0 
> >> 17169 mmap(NULL, 49348608, PROT_READ|PROT_WRITE, 
> >> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f41c7266000 
> >> 17169 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) 
> = 
> >> 0 
> >> 17169 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) 
> = 
> >> 0 
> >> 17169 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) 
> = 
> >> 0 
> >> 
> >> Beyond this point, tons of exactly the same line, CPU at 100% and 
> memory 
> >> usage increasing until it fills RAM and swap space, and then the 
> SIGKILL 
> >> shown above. 
> >> 
> >> Roger 
> >> 
> >> On Tuesday, October 8, 2013 7:22:20 PM UTC+2, Roger Torrentsgenerós 
> wrote: 
> >>> 
> >>> 
> >>> Hi, 
> >>> 
> >>> I currently have a MySQL database containing all Puppet storeconfigs. 
> My 
> >>> intention is to migrate to PuppetDB on a PostgreSQL server, so the 
> first 
> >>> step is to use the 'storeconfigs' face to export all the DB to a file 
> >>> PuppetDB can later consume. But the 'puppet storeconfigs export' 
> command 
> >>> always ends up being killed, I suspect due to some sort of OOM issue. 
> I have 
> >>> tried different environments, different Puppet / Ruby / whatever 
> versions, 
> >>> different hardware... No matter what, it always ends up the same. 
> >>> 
> >>> The process starts well, connects to the database and fetches all the 
> >>> data, but then it seems to get stuck after this output line: 
> >>> Info: Connecting to mysql2 database: puppet 
> >>> 
> >>> Meanwhile, a CPU is working and the amount of memory used by this 
> process 
> >>> increases constantly. I have tried on several servers, one with up to 
> 28GB 
> >>> of RAM, and it died the same way. 
> >>> 
> >>> Here are the facts of my last attempt: 
> >>> 
> >>> The execution output: 
> >>> 
> >>> [root@ST-L226-ROGTORG ~]# time puppet storeconfigs --verbose --debug 
> >>> export 
> >>> Debug: Using settings: adding file resource 'confdir': 
> >>> 'File[/etc/puppet]{:path=>"/etc/puppet", :ensure=>:directory, 
> >>> :loglevel=>:debug, :links=>:follow, :backup=>false}' 
> >>> Debug: Using settings: adding file resource 'vardir': 
> >>> 'File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, 
> >>> :loglevel=>:debug, :links=>:follow, :backup=>false}' 
> >>> Debug: Failed to load library 'ldap' for feature 'ldap' 
> >>> Debug: Puppet::Type::User::ProviderLdap: feature ldap is missing 
> >>> Debug: Puppet::Type::User::ProviderDirectoryservice: file 
> >>> /usr/bin/dsimport does not exist 
> >>> Debug: Puppet::Type::User::ProviderPw: file pw does not exist 
> >>> Debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does 
> not 
> >>> exist 
> >>> Debug: Failed to load library 'ldap' for feature 'ldap' 
> >>> Debug: Puppet::Type::Group::ProviderLdap: feature ldap is missing 
> >>> Debug: Puppet::Type::Group::ProviderDirectoryservice: file 
> /usr/bin/dscl 
> >>> does not exist 
> >>> Debug: Puppet::Type::Group::ProviderPw: file pw does not exist 
> >>> Debug: Using settings: adding file resource 'logdir': 
> >>> 'File[/var/log/puppet]{:path=>"/var/log/puppet", :mode=>"750", 
> >

Re: [Puppet Users] installing package giving error

2013-10-18 Thread kampy
HI matthew,

Thanks for the help . it was due to the lock on apt due to some other 
processes.



On Friday, 18 October 2013 17:35:11 UTC+5:30, kampy wrote:
>
> Hi Matthew,
>
> the same script when i tried from a cloud VM. i am able to install all the 
> packages. please help me in resolving the issues.
> The environment i am using is a proxy one as i am in company env which has 
> some restrictions. 
> Do you mean that this may be the problem ?
> the IP i am using does have apt-get permissions. 
> Please let me know how to get rid of this issue.
>
> Regards,
> kampy
>
>
> On Friday, 18 October 2013 16:18:06 UTC+5:30, kampy wrote:
>>
>> Hi Matthew,
>>
>> I am seeing the same error.
>>
>> # /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap.
>> Reading package lists...
>> Building dependency tree...
>> Reading state information...
>> The following extra packages will be installed:
>>   libqtwebkit4 libtie-ixhash-perl libxml-twig-perl libxml-xpath-perl nmap
>> Suggested packages:
>>   libunicode-map8-perl libunicode-string-perl xml-twig-tools
>> The following NEW packages will be installed:
>>   libnmap-parser-perl libqtwebkit4 libtie-ixhash-perl libxml-twig-perl 
>> libxml-xpath-perl nmap nmapsi4 zenmap
>> 0 upgraded, 8 newly installed, 0 to remove and 149 not upgraded.
>> Need to get 9,174 kB of archives.
>> After this operation, 42.1 MB of additional disk space will be used.
>> WARNING: The following packages cannot be authenticated!
>>   libqtwebkit4 libxml-twig-perl libnmap-parser-perl libtie-ixhash-perl 
>> libxml-xpath-perl nmap nmapsi4 zenmap
>> E: There are problems and -y was used without --force-yes
>>
>> Please help me in resolving these errors.
>>
>> Regards,
>> kampy
>>
>> On Friday, 18 October 2013 16:08:20 UTC+5:30, Matthew Burgess wrote:
>>>
>>> On 18 October 2013 08:04, kampy  wrote:
>>>
 Hi all,

 I am new to puppet. i just started exploring. when i am trying install 
 a package it is giving the below error

 *$ puppet apply nmap.pp
 err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to 
 present failed: Execution of '/usr/bin/apt-get -q -y -o 
 DPkg::Options::=--force-confold install nmap' returned 100: Reading 
 package 
 lists...
 *

>>>
>>> This suggests that there is an issue with 'apt-get'.  What happens if 
>>> you run:
>>>
>>> */usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap*
>>> 
>>>  
>>>
>>> on the command line?
>>>
>>> Regards,
>>>
>>> Matt.
>>>
>>

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


Re: [Puppet Users] Windows 8.1 Puppet Crashing

2013-10-18 Thread Jason Bray
Well, that is exactly the issue. It doesn't appear to crash in a visible 
way, there is simply no output for any command I give it. Although, every 
once in a while, it appears to work normally and shows output as expected. 
90% of the time, the command hangs for a second or two then returns me to 
the command prompt with no output whatsoever.

For example 

C:\Scratch> puppet apply test.pp --debug --verbose --trace

C:\Scratch>


Actually to make it even weirder, I think I might have been wrong about it 
crashing. For example when I run a simple manifest, 

file { 'C:\Scratch\foo.txt':
  ensure => present,
  content => 'bar,
}

The command prompt looks like this:

C:\Scratch> puppet apply test.pp --debug --verbose --trace

C:\Scratch>

However, when I do a dir, I see that the file has indeed been created.


On Thursday, October 17, 2013 3:48:41 PM UTC-4, Rob Reynolds wrote:
>
> Jason,
>  Sorry, I meant applying a catalog or running something that causes puppet 
> to crash in a visible way. Apologies for the miscommunication.
>
>
> On Thu, Oct 17, 2013 at 12:58 PM, Jason Bray 
> > wrote:
>
>> Of course, sorry. 
>>
>> Puppet 3.3.1 installed from an MSI, I believe the ruby version is 1.9.2, 
>> but I'm not 100% on that.
>>
>> As for the output, literally it has no output at all.
>>
>> For example 
>>
>> C:\Scratch> puppet help --verbose --debug --trace
>>
>> C:\Scratch> 
>>
>> With only a moment's delay between the two.
>>  
>> -- 
>> 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 post to this group, send email to puppet...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Rob Reynolds
> Developer, Puppet Labs
>
> Join us at PuppetConf 2014, September 23-24 in San Francisco
>  

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


Re: [Puppet Users] installing package giving error

2013-10-18 Thread kampy
Hi Matthew,

the same script when i tried from a cloud VM. i am able to install all the 
packages. please help me in resolving the issues.
The environment i am using is a proxy one as i am in company env which has 
some restrictions. 
Do you mean that this may be the problem ?
the IP i am using does have apt-get permissions. 
Please let me know how to get rid of this issue.

Regards,
kampy


On Friday, 18 October 2013 16:18:06 UTC+5:30, kampy wrote:
>
> Hi Matthew,
>
> I am seeing the same error.
>
> # /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap.
> Reading package lists...
> Building dependency tree...
> Reading state information...
> The following extra packages will be installed:
>   libqtwebkit4 libtie-ixhash-perl libxml-twig-perl libxml-xpath-perl nmap
> Suggested packages:
>   libunicode-map8-perl libunicode-string-perl xml-twig-tools
> The following NEW packages will be installed:
>   libnmap-parser-perl libqtwebkit4 libtie-ixhash-perl libxml-twig-perl 
> libxml-xpath-perl nmap nmapsi4 zenmap
> 0 upgraded, 8 newly installed, 0 to remove and 149 not upgraded.
> Need to get 9,174 kB of archives.
> After this operation, 42.1 MB of additional disk space will be used.
> WARNING: The following packages cannot be authenticated!
>   libqtwebkit4 libxml-twig-perl libnmap-parser-perl libtie-ixhash-perl 
> libxml-xpath-perl nmap nmapsi4 zenmap
> E: There are problems and -y was used without --force-yes
>
> Please help me in resolving these errors.
>
> Regards,
> kampy
>
> On Friday, 18 October 2013 16:08:20 UTC+5:30, Matthew Burgess wrote:
>>
>> On 18 October 2013 08:04, kampy  wrote:
>>
>>> Hi all,
>>>
>>> I am new to puppet. i just started exploring. when i am trying install a 
>>> package it is giving the below error
>>>
>>> *$ puppet apply nmap.pp
>>> err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to 
>>> present failed: Execution of '/usr/bin/apt-get -q -y -o 
>>> DPkg::Options::=--force-confold install nmap' returned 100: Reading package 
>>> lists...
>>> *
>>>
>>
>> This suggests that there is an issue with 'apt-get'.  What happens if 
>> you run:
>>
>> */usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap*
>>  
>>
>> on the command line?
>>
>> Regards,
>>
>> Matt.
>>
>

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


Re: [Puppet Users] installing package giving error

2013-10-18 Thread kampy
Hi Matthew,

I am seeing the same error.

# /usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libqtwebkit4 libtie-ixhash-perl libxml-twig-perl libxml-xpath-perl nmap
Suggested packages:
  libunicode-map8-perl libunicode-string-perl xml-twig-tools
The following NEW packages will be installed:
  libnmap-parser-perl libqtwebkit4 libtie-ixhash-perl libxml-twig-perl 
libxml-xpath-perl nmap nmapsi4 zenmap
0 upgraded, 8 newly installed, 0 to remove and 149 not upgraded.
Need to get 9,174 kB of archives.
After this operation, 42.1 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  libqtwebkit4 libxml-twig-perl libnmap-parser-perl libtie-ixhash-perl 
libxml-xpath-perl nmap nmapsi4 zenmap
E: There are problems and -y was used without --force-yes

Please help me in resolving these errors.

Regards,
kampy

On Friday, 18 October 2013 16:08:20 UTC+5:30, Matthew Burgess wrote:
>
> On 18 October 2013 08:04, kampy > wrote:
>
>> Hi all,
>>
>> I am new to puppet. i just started exploring. when i am trying install a 
>> package it is giving the below error
>>
>> *$ puppet apply nmap.pp
>> err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to 
>> present failed: Execution of '/usr/bin/apt-get -q -y -o 
>> DPkg::Options::=--force-confold install nmap' returned 100: Reading package 
>> lists...
>> *
>>
>
> This suggests that there is an issue with 'apt-get'.  What happens if you 
> run:
>
> */usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap*
>  
>
> on the command line?
>
> Regards,
>
> Matt.
>

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


Re: [Puppet Users] installing package giving error

2013-10-18 Thread Matthew Burgess
On 18 October 2013 08:04, kampy  wrote:

> Hi all,
>
> I am new to puppet. i just started exploring. when i am trying install a
> package it is giving the below error
>
> *$ puppet apply nmap.pp
> err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present
> failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install nmap' returned 100: Reading package
> lists...
> *
>

This suggests that there is an issue with 'apt-get'.  What happens if you
run:

*/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nmap*


on the command line?

Regards,

Matt.

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


[Puppet Users] installing package giving error

2013-10-18 Thread kampy
Hi all,

I am new to puppet. i just started exploring. when i am trying install a 
package it is giving the below error

*$ puppet apply nmap.pp
err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present 
failed: Execution of '/usr/bin/apt-get -q -y -o 
DPkg::Options::=--force-confold install nmap' returned 100: Reading package 
lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nmap
0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
Need to get 1643 kB of archives.
After this operation, 6913 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  nmap
E: There are problems and -y was used without --force-yes

notice: Finished catalog run in 1.04 seconds*
 script is as below :

class nmap{
package { 'nmap':
ensure => installed,
}
}
include nmap

Please let me know do i need to add any other options here or give me a 
correct tutorial link where i can find easily these things.

Regards
kampy

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


[Puppet Users] installing a package nmap on ubuntu

2013-10-18 Thread kampy


Hi, i am new to puppet please help me how to resolve this issue. 
below is my script 
class nmap {
package { 'nmap':
ensure => installed,
}

}
include nmap

below is the error it is failing 

err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present 
failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold 
install nmap' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nmap
0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
Need to get 1643 kB of archives.
After this operation, 6913 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  nmap
E: There are problems and -y was used without --force-yes

notice: Finished catalog run in 1.16 seconds

please help in understanding what i am missing here to install this package

Thanks in advance 

Regards,
kampy

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


Re: [Puppet Users] Re: Nagios & Puppet

2013-10-18 Thread Juan Sierra Pons
Hello,

Right now I am using a workaround similar to Steve's approach and it
works pretty well

Just checking what other people is doing

Thank for your replies and time

Best regards

--
Juan Sierra Pons j...@elsotanillo.net
Linux User Registered: #257202   http://www.elsotanillo.net
GPG key = 0xA110F4FE
Key Fingerprint = DF53 7415 0936 244E 9B00  6E66 E934 3406 A110 F4FE
--


2013/10/17 Gabriel Filion :
> On 17/10/13 07:44 AM, Juan Sierra Pons wrote:
>> El jueves, 27 de junio de 2013 18:07:03 UTC+2, Christian Reiß escribió:
>> The one thing I am banging my head against is the service
>> definitions. The services use stuff like remote-nrpe-zombie-procs,
>> which of course, is not defined anywhere:
>>
>> define service {
>> ## --PUPPET_NAME-- (called '_naginator_name' in the
>> manifest)check_zombie_procs_gaming
>> useremote-nrpe-zombie-procs
>> host_name  gaming.alpha-labs.net
>> 
>> }
>>
>> So far I am letting puppet generate the three configs:
>>
>> nagios_host.cfg
>> nagios_hostextinfo.cfg
>> nagios_service.cfg
>>
>> Tho for this to work I would need a corresponding commands.cfg and
>> all the Howtos out there do not seem to have my problem.
>
>> Hello Chris,
>>
>> I am facing here the same problem. Did you manage to fix/workaround it?
>
> This might be of interest to you two:
>
> https://projects.puppetlabs.com/issues/1180
>
> the way I currently work around the inability to export host/service
> templates is by defining a file resource in which I write the templates.
>
> --
> Gabriel Filion
>

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