Displaying 18 results from an estimated 18 matches for "puppetclasses".
2008 Oct 22
5
LDAP Problem
I am trying to configure puppet with LDAP repository . I have set puppet
schema and I have also added node definition at LDAP.
Here is my configuration details .
##############################################################
Puppet.conf
node_terminus = ldap
ldapserver = 10.250.11.127
ldapbase = ou=Hosts,dc=xyz,dc=com
ldapassword = secret
2007 Oct 10
5
Puppet ldapnodes issue
I am attempting to move our test puppet installation from looking for node information in a manifest to LDAP. I followed the instructions at: https://reductivelabs.com/trac/puppet/wiki/LdapNodes and was able to get the puppet schema loaded into our LDAP.
I can now query LDAP and modify/load data without any issues using the OpenLDAP tools.
e.g.
ldapsearch -h ldapdev1.domain.com -x
2011 Oct 11
1
recursive finds
...eferred to as STI but I am not sure) and thus within Foreman, nesting Hostgroups is not uncommon.
Thus I could have a Host that is called "ServerA", that belongs to "WebServer" Hostgroup which has an ancestry (Hostgroup) called "Base" and for me to find out all of the puppetclasses that host "ServerA" belongs to, I would have to get a listing of all of the puppetclasses within the chain of Hostgroups to which ServerA belongs.
So this is my code...
@hosts.each do |host|
@ancestors = Hostgroup.find(host.hostgroup.ancestry) unless host.hostgroup.ancestry == nil...
2007 Jun 29
1
More on class includes
After some through I have decided that I don''t want to keep all my
configuration variables in LDAP; too many variables and the variables
are too specific to manage efficiently.
What I want to keep in ldap are some general class definitions, like
samba-bdc, and samba-dev-shares, etc. So I build a manifest like the
one below; but there are a few problems.
First, I can''t be sure
2006 Sep 06
4
FQDN nodes in LDAP
Hi,
I''ve set up puppet to get node definitions from LDAP as per the docs.
It''s been working well, but I now want to use fully qualified domain
names instead of simple domain-less hostnames for the node name.
I replaced the ou=Hosts entries with equivalent ones using FQDNs,
restarted the puppetmasterd, and tried a "puppetd --test" from one of
the nodes. However, I
2011 Jul 14
5
LDAP ENC
Seems straight forward enough but I keep getting errors. On a client...
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node ubuntu5.ttinet: LDAP Search failed
on the puppet master...
puppet.conf [master]
# ENC (external node classificiations)
node_terminus = ldap
ldapnodes = true
ldapclassattrs = puppetclass
# LDAP
ldapserver =
2012 Feb 06
2
Puppet kick class option error
Hi,
I''m trying to puppet kick with class option.
Pupper Master: puppetmaster.example.com
Puppet Client1: host1.example.net
Puppet Client2: host2.example.net
But I get this error.
---
[root@puppetmaster ~]# puppet kick --class test --debug
test: host1.example.net.example.com, host2.example.net.example.com
Triggering host1.example.net.example.com,
host2.example.net.example.com
Host
2007 Aug 27
3
Puppet Nodes in DNS
Has anyone given any thought to using DNS for node information rather than LDAP? You see,
I already have all my nodes defined... in BIND ;-).
Perhaps something like:
foo IN A 10.178.10.1
IN TXT "puppetclass=<class_name>"
IN TXT "puppetclass=<class_name>"
.
.
.
Ad nauseam
--
Russell A. Jackson <raj at csub.edu>
Network Analyst
California State
2009 Nov 26
2
Puppet+Foreman: class into module couldn't apply on nodes
...e db:migrate
3. Run RAILS_ENV=production rake puppet:import:hosts_and_facts
(in /var/rails/foreman)
Importing from /var/puppet/yaml/facts
Importing srv2-svc8.net.billing.ru
4. Run rake puppet:import:puppet_classes --trace RAILS_ENV=production
(in /var/rails/foreman)
Environment old:0 current:1
PuppetClasses old:0 current:1
5. Start foreman: ./script/server -e production - OK
Into web-interface I see srv2-svc8 node with all facts, environment
"prodaction" and class "test_calss"
6. After this I create new host in Foreman web page. I include class
"test_calss" to new hos...
2010 Dec 20
2
foreman issue
Hello!
I try to use foreman. It''s successfuly import current nodes from
puppet storeconfig. Nodes hostname stored in short form, without
domain.
After that, i run puppet on newly created additional 5 nodes. They
shows in foreman with full fqdn. Os, environment, architecture for
this nodes not shown.
How can i fix this issue?
--
You received this message because you are subscribed to
2012 Sep 10
5
Nagios purge deleted items and notify nagios service problem
I am using stored configs to manage my nagios host and services checks and
I have run into a problem that I have been unable to solve. When the
stored configs are purged from puppet the nagios server correctly removes
them from the services and hosts file but does not notify the nagios
service and instead throws an error. So the entries are still there and
nagios still reports on them until
2007 Nov 13
6
Facter and arrays
Hi,
Is it possible to have an array as the output of a custom fact? And
then to pass it into a template in Puppet?
I currently have a fact that looks like this:
Facter.add("exports") do
setcode do
case Facter.hostname
when (/thishost/i):
[ "/local", "/local2" ]
end
end
end
& a template like this:
<%
2010 Jun 07
1
undefined method 'to_sym' for ["<var>", "<var">]:Array
I am running into a problem with my LDAP puppet setup with this error
message:
PuppetClient:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not parse for environment DR: undefined method `to_sym'' for ["ENV1",
"ENV2"]:Array
PuppetMaster:
err: Could not parse for environment DR: undefined method `to_sym'' for
["ENV1",
2011 Sep 22
8
Export variables into other classes
Hi all
I have been pondering this for a while, but not yet seen a clean way
to do it
I have a few puppet classes (apache/ntp/mysql/bacula/nagios/etc)
I would like to generate part of my bacula and nagios configs for each
host based on which other classes that host belongs to (or to put it
another way, I would like to export variables from classes which would
be used by my bacula and nagios
2012 Aug 23
1
Puppet Agent VS User
Hello,
Running into a problem when wanting to daemon-ize the agent. It doesnt
seems to do anything:
- cannot find any daemon process with (ps aux | grep puppet)
- the config is not updated after editing some params on the master
- /var/log/puppet stay empty...
while, when logged as root, it is working without issue with $puppet agent
--test.
##Conf
Ubuntu 12.04
Puppet 2.7.11
## Daemon is
2007 Dec 12
8
Solaris package woes
I am trying to get Puppet to push out a Solaris sudo package
that I built, but I keep getting errors. I tested applying
the package manually outside of Puppet and it works perfectly,
but when I attempt to push it out via Puppet it fails.
Puppetmaster Version: 0.23.2 [Ubuntu Linux 7.10 - Puppet built
from source]
Puppet client version: 0.23.0 [Sun Solaris 10 Zone - Puppet
built from source]
The
2011 Nov 04
1
Storeconfigs and nagios and foreman
All-
Poking around in the bug database it looks like storeconfigs is being
actively worked on. I am using 2.7.6 on my master as well as all the
clients. I have clients boot , start puppet and get a signed cert via
auto signing. The nagios module (and currently the only thing puppet
does) complains a lot during compile time about not having
storeconfigs enabled, which is not the case in my
2013 Mar 28
4
Custom fact or function ? looking for opinion
Hi,
I''m in the progress of writing custom facts to retrieve our network
configuration for the nodes from the openldap ENC.
Now, since the puppetmaster has also access to the ldap server, I''m
thinking to move the custom facts to a function, so it runs on the
puppetmaster only, end not on every node.
I just wanted to here some other opinions about this issue.
Thx
Johan