Hi All,
I have installed the master on CentOS 6.5 and while installing Agent ,
that which the node is not connected to the internet
Per Documentation, I downloaded the Puppet Agent Tar file and copied to
the master server in /opt/staging/pe_repo
Now when I run curl -k
You could start checking your manifest dir for your environment :
puppet master --configprint manifest
mine says :
/data/puppet/environments/production/manifests
There you should have your site.pp for that environment.
hth
Johan
On 09/02/15 05:56, David LeVene wrote:
Hey All,
I've
Am Freitag, 6. Februar 2015 22:45:30 UTC+1 schrieb guymatz:
Hello! Is there a way to set the dependency for a resource that is a
subclass? I have an accounts module, and within that is
accounts::account which contains declarations to create user, group, etc. .
. . I would like to do
Puppet 3.7.3
Facter 2.3.0
running on RHEL 6
Reference:
https://docs.puppetlabs.com/facter/2.2/custom_facts.html#fact-locations
I put a simple fact_file.txt in one of my modules to try this new feature.
When I run puppet agent, I see the fact file deployed to
/var/lib/puppet/facts.d/
However,
Point taken on perl overkill .. trying to get something working and
copy/pasted someone else's solution ;)
In any case, I expect this to get all of the non-localhost interface
names, sort them, and return me the IP address of the last in the
list.
When run from commandline by name it works great.
Just to make sure .. simplified without perl ..
[root@uc-01 ~]# cat
/opt/wdts/puppet/production/modules/puppet/lib/facter/last_interface.rb
Facter.add('last_interface') do
setcode do
name = Facter::Core::Execution.exec('ip -o l | grep -v loopback | sed
\'s/://g\' | cut -d\' \' -f2 | sort -n
OK.. so I'm having a major brain fart here...
I have a class thusly:
class scripts::myscript {
@file{'my neat script':
path=/path/to/the/script,
source=puppet:///modules/scripts/myscript.pl
}
realize File['my neat
How would I represent an undef in hiera such that a class parameter will be
populated as undef? Like this, but in hiera:
#class testing::cwood1 ( $param1 = undef ) {
class testing::cwood1 ( $param1 ) {
if str2bool($param1) {
notify { 'mn':
message = param1 is ${param1}
}
}
}
On 1/30/15 4:53 PM, Sans wrote:
This is the class I have for the user creation:
/*#users.pp
*/
class common::users {
create_resources('group', hiera_hash('groups'))
define create_ssh_users () {
user { $name:
password
I have more information .. it seems almost like facter is caching a stale
result. While troubleshooting at the commandline I commented out the second
line (Facter::value) and had it just return the name it was finding. After
I made that change 'facter last_interface' returned the (correct)
I'm wondering if anyone has this unique use case.
We're going to experiment by giving our ops team their own hieradata
repository, and keep our internal repository separate.
(If you're curious, we'll be giving them control over the %{::hostname}
tier, and we'll keep common / roles /
On 2/9/15 5:33 PM, Peter Berghold wrote:
OK.. so I'm having a major brain fart here...
I have a class thusly:
class scripts::myscript {
@file{'my neat script':
path=/path/to/the/script,
source=puppet:///modules/scripts/myscript.pl
On 02/06/2015 05:15 PM, Josh Bronson wrote:
I just filed https://tickets.puppetlabs.com/browse/ENTERPRISE-515 for
this. The workaround is to disable CRL checking:
1. Add certificate_revocation = false to the [agent] section of the
puppet.conf file as described at
In the past I've used yaml for Ops and json for Dev. That worked well
and it was mostly automated scripts that we dropping files into a
different path.
While it's much more work you might consider Redis as a Hiera backend
coupled with an http user interface and api. I did some work around
gah, link is https://www.youtube.com/watch?v=7NBJAC10ato
On 2/9/15 12:37 PM, Ramin K wrote:
In the past I've used yaml for Ops and json for Dev. That worked
well and it was mostly automated scripts that we dropping files into a
different path.
While it's much more work you might
Yea I've tested a redis backend as an ENC but we haven't enabled it yet as
we'll likely ditch it for the console enc in 3.7.
The problem with Redis is lack of version control, which our Ops guys do
want. ( unless you did an http backend that served up a file system with
your yaml files..
arildjensen-cis seems not to have worked for RHEL7
--
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
On Friday, February 6, 2015 at 3:45:30 PM UTC-6, guymatz wrote:
Hello! Is there a way to set the dependency for a resource that is a
subclass? I have an accounts module, and within that is
accounts::account which contains declarations to create user, group, etc. .
. . I would like to
On Friday, February 6, 2015 at 2:13:21 PM UTC-6, Steve Harp wrote:
Hi Guys,
I have a json configuration file on each Puppet Agent that I need to parse
and return the values as custom facts. Each json file will contain an
array of from 0 to n elements each of which will have needed
On Sunday, February 8, 2015 at 3:47:58 PM UTC-6, John D'Ausilio wrote:
So I have a custom fact which works fine from the commandline: facter
last_interface (it returns the ip address of the last of a sorted list of
interface names)
If I just run facter without parameters, the value in
No idea what virtual box is doing, I'd try to keep it internal and use
existing facts like interfaces, lop off the loopback interface and grab
the last element of the array and use Facter.value as you are doing
John
On 10 February 2015 at 05:31, John D'Ausilio jdausi...@gmail.com wrote:
I have
On 9 February 2015 at 20:12, Brett Swift brettsw...@gmail.com wrote:
I'm wondering if anyone has this unique use case.
We're going to experiment by giving our ops team their own hieradata
repository, and keep our internal repository separate.
We have a similar requirement whereby our
Hi John,
To clarify, this should only be run on the puppet master as that's where
the catalog complication takes place?
That seems to be all good - the base environment points to production and
other environments point to their correct location.
puppet_master ~]# puppet master --configprint
Folks,
I tried downloading the Learning VM image for VMware, and while there does
seem to be a .vmdk file inside the zip archive, along with various other
parts I would expect to find, so far as I can tell this is not something
that I can successfully import into VMware Fusion 7.
Has this
Folks,
I tried posting a message to this effect from my Google Groups account, but it
doesn’t seem to have gone through. I’ll try to post it again via e-mail to the
Google Groups address.
Anyway, I’m wondering if anyone has managed to actually use the latest version
of the Puppet Learning
Sorry! Yes, accounts::account is a defined type! :-( Sorry . . .
Working now!! Thanks!!
On Mon, Feb 9, 2015 at 9:01 AM, jcbollinger john.bollin...@stjude.org
wrote:
On Friday, February 6, 2015 at 3:45:30 PM UTC-6, guymatz wrote:
Hello! Is there a way to set the dependency for a
26 matches
Mail list logo