Update puppet class from Client

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Update puppet class from Client
# 1  
Old 10-26-2016
Update puppet class from Client

Hi all,

This is more a satellite 6 question

Is it possible to add / assign a puppet client to a class on the master from the client ? This is for automation and I can't get it to work.

On an existing client used as a web server I found the following content in
Code:
cat /var/lib/puppet/state/resources.txt

package[httpd]
service[httpd]
file[/etc/httpd/conf.d/aaa-default.conf]
file[/var/www/html/index.html]
file[/etc/httpd/conf.d/welcome.conf]

cat /var/lib/puppet/classes.txt

httpd
settings
httpd

If I add the same content on the client I'd like to be in the same class and rerun
Code:
puppet agent -t

these files are getting overwritten and no httpd rpm will get installed.

Is there a sollution to this or is it even possible with hammer from the client site ?

I already logged a support call with redhat but didn't get an answer yet ?????

Thanks for any help
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Programming

C++ : Base class member function not accessible from derived class

Hello All, I am a learner in C++. I was testing my inheritance knowledge with following piece of code. #include <iostream> using namespace std; class base { public : void display() { cout << "In base display()" << endl; } void display(int k) {... (2 Replies)
Discussion started by: anand.shah
2 Replies

2. UNIX for Advanced & Expert Users

Get pointer for existing device class (struct class) in Linux kernel module

Hi all! I am trying to register a device in an existing device class, but I am having trouble getting the pointer to an existing class. I can create a class in a module, get the pointer to it and then use it to register the device with: *cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
Login or Register to Ask a Question
PUPPET-MASTER(8)						   Puppet manual						  PUPPET-MASTER(8)

NAME
puppet-master - The puppet master daemon SYNOPSIS
The central puppet server. Functions as a certificate authority by default. USAGE
puppet master [-D|--daemonize|--no-daemonize] [-d|--debug] [-h|--help] [-l|--logdest file|console|syslog] [-v|--verbose] [-V|--version] [--compile node-name] DESCRIPTION
This command starts an instance of puppet master, running as a daemon and using Ruby's built-in Webrick webserver. Puppet master can also be managed by other application servers; when this is the case, this executable is not used. OPTIONS
Note that any configuration parameter that's valid in the configuration file is also a valid long argument. For example, 'ssldir' is a valid configuration parameter, so you can specify '--ssldir directory' as an argument. See the configuration file documentation at http://docs.puppetlabs.com/references/stable/configuration.html for the full list of acceptable parameters. A commented list of all configuration options can also be generated by running puppet master with '--genconfig'. --daemonize Send the process into the background. This is the default. --no-daemonize Do not send the process into the background. --debug Enable full debugging. --help Print this help message. --logdest Where to send messages. Choose between syslog, the console, and a log file. Defaults to sending messages to syslog, or the console if debugging or verbosity is enabled. --verbose Enable verbosity. --version Print the puppet version number and exit. --compile Compile a catalogue and output it in JSON from the puppet master. Uses facts contained in the $vardir/yaml/ directory to compile the catalog. EXAMPLE
puppet master DIAGNOSTICS
When running as a standalone daemon, puppet master accepts the following signals: SIGHUP Restart the puppet master server. SIGINT and SIGTERM Shut down the puppet master server. SIGUSR2 Close file descriptors for log files and reopen them. Used with logrotate. AUTHOR
Luke Kanies COPYRIGHT
Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License Puppet Labs, LLC June 2012 PUPPET-MASTER(8)