About | FAQ | Help
Ask Your Question

bschonecker's profile - activity

2018-06-22 06:05:09 -0500 commented question question regarding include -- need to have separate modules due to CIS implementation

Why aren't you using the NTP module, 'puppetlabs-ntp'? It seems to me you're reinventing the NTP wheel here, so-to-spea

2018-06-11 02:04:14 -0500 received badge  Famous Question (source)
2018-06-06 19:31:21 -0500 received badge  Notable Question (source)
2018-06-06 06:28:12 -0500 received badge  Popular Question (source)
2018-06-06 06:18:51 -0500 received badge  Popular Question (source)
2018-06-04 19:32:39 -0500 asked a question Puppet not finding facts in manifests but 'facter <fact>' from the command line works just fine.

Puppet not finding facts in manifests but 'facter <fact>' from the command line works just fine. I've got multiple

2018-06-04 19:06:03 -0500 asked a question Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, undefined method `top_of_stack' for Puppet::Pops::PuppetStack:Module

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while e

2018-05-31 05:40:07 -0500 received badge  Nice Answer (source)
2018-05-29 16:26:19 -0500 commented answer Yum group install failing but manual command is working.

Wierd. The @smart-card works fine for me. I'll try to find out why @gnome-desktop-environment doesn't work.

2018-05-29 07:55:00 -0500 commented question How do I avoid node level hiera data? How much do you use node hiera data?

In addition, I use node level hiera data all the time to solve 'snowflake' issues. I think Puppet is recommending that

2018-05-29 07:19:02 -0500 commented question How do I avoid node level hiera data? How much do you use node hiera data?

Rather than change puppet behavior, change the way you deploy puppet code. Why don't you take a more DEVOPS-ish approa

2018-05-29 07:14:13 -0500 answered a question please I am using puppet 5.5 I have a module and I need to apply it to all nodes ; what should I do ; please help me

Take the class { 'snmp': } out of every node definition and put it on the first line of your site.pp file.

2018-05-29 07:01:44 -0500 edited answer Yum group install failing but manual command is working.

Instead of running an exec, you can use the package resource with the name of the "shortened group name". I don't have

2018-05-29 07:01:27 -0500 edited answer Yum group install failing but manual command is working.

Instead of running an exec, you can use the package resource with the name of the "shortened group name". I don't have

2018-05-29 07:01:04 -0500 edited answer Yum group install failing but manual command is working.

Instead of running an exec, you can use the package resource with the name of the "shortened group name". I don't have

2018-05-29 07:00:35 -0500 answered a question Yum group install failing but manual command is working.

Instead of running an exec, you can use the package resource with the name of the "shortened group name". I don't have

2018-05-14 09:29:22 -0500 commented question Error: /Stage[main]/Apache2::Service/Service[Apache2]: Could not evaluate: Could not find init script or upstart conf file for 'Apache2'

I second that. Take it from someone who did a lot of work to invent an Apache module only to find out one already exist

2018-05-07 19:20:17 -0500 received badge  Famous Question (source)
2018-04-30 19:01:34 -0500 received badge  Famous Question (source)
2018-04-30 19:01:34 -0500 received badge  Notable Question (source)
2018-03-02 09:00:26 -0500 received badge  Notable Question (source)
2018-02-27 03:27:17 -0500 received badge  Popular Question (source)
2018-02-26 13:17:45 -0500 asked a question Puppet 4 Open Source End of Life (EOL)

Puppet 4 Open Source End of Life (EOL) I'm trying to find out when Puppet 4 goes end of life. Red Hat Satellite 6.3 no

2017-11-26 05:47:14 -0500 answered a question Issues synching yum.puppetlabs.com repo through Red Hat Satellite

To my understanding, Red Hat Satellite must be installed on RHEL7. I don't think it's supported on RHEL6.

2017-10-02 07:27:16 -0500 answered a question can puppet-agent be configured to run ONLY on port 443?

https://docs.puppet.com/puppet/latest/configuration.html#masterport

2017-09-26 00:33:44 -0500 received badge  Famous Question (source)
2017-07-11 16:49:37 -0500 received badge  Good Answer (source)
2017-07-11 16:49:37 -0500 received badge  Enlightened (source)
2017-06-18 20:33:59 -0500 commented question Is there support for Puppet on Oracle Linux/SPARC?

I built Puppet server and 'client' stuff from source RPMs for Red Hat 6 and 7 on zLinux/zVM. I have had zero issues in

2017-06-15 21:16:42 -0500 answered a question How to execute two commands one after the other in puppet program

You could pipe the STDOUT from the gzip command directly to tar and avoid two separate commands: gunzip --to-stdout /op

2017-05-02 06:17:38 -0500 commented question How to handle renamed or removed package versions from package manager (yum, apt, etc)?

Assuming linux, you could mirror the repository internally That way you can control what files are a part of the reposi

2017-04-21 10:17:39 -0500 edited answer How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet:///module/filename-${environment}.sh", Should do the trick on line #6 where you have filename-a.sh

2017-04-21 06:28:30 -0500 commented answer How to copy and install 3 different files from puppet master to 3 different locations , plz help

Ah, yes. I didn't catch that. I was focused on using the ${environment} variable.

2017-04-21 05:22:49 -0500 answered a question How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet:///module/files/filename-${environment}.sh", Should do the trick on line #6 where you have filena

2017-04-21 05:22:32 -0500 received badge  Associate Editor (source)
2017-04-21 05:22:32 -0500 edited answer How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet:///module/files/filename-${environment}.sh", Should do the trick on line #6 where you have filena

2017-04-21 05:21:43 -0500 edited answer How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet://module/files/filename-${environment}.sh", Should do the trick on line #6 where you have filename

2017-04-21 05:21:29 -0500 edited answer How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet://module/files/filename-${environment}.sh", Should do the trick on line #6 where you have filename

2017-04-21 05:21:14 -0500 edited answer How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet://module/files/filename-${environment}.sh", Should do the trick on line #6 where you have filename

2017-04-21 05:20:19 -0500 answered a question How to copy and install 3 different files from puppet master to 3 different locations , plz help

source => "puppet://module/files/filename-${environment}.sh", Should do the trick on line #6.

2017-04-17 03:04:31 -0500 received badge  Notable Question (source)
2017-04-07 05:34:10 -0500 commented question How to identify third-party dependencies that are used within puppet server?

If you search for 'dependencies' in the individual modules' metadata.json file, it'll show you the modules' dependencies on other modules.

2017-04-07 05:33:02 -0500 commented question How to identify third-party dependencies that are used within puppet server?

Are you talking about the OS layer code the puppet requires or are you talking about the include module list that puppet modules need themselves in order to run? For the former, 'rpm -q -R <puppetrpm> will show you the required packages puppet needs in order to run on Linux.

2017-03-30 14:19:13 -0500 received badge  Popular Question (source)
2017-03-29 14:25:00 -0500 received badge  Popular Question (source)
2017-03-22 06:23:26 -0500 answered a question Can I use a package resource here instead of exec?

Why aren't your admins managing YUM repos very well? That seems to be both the cause and solution to your problem; get them to start managing those repositories.

I recommend that you install a custom yum repository file in /etc/yum.repos.d that references the URL where your (custom?) package can be found.

Puppet can manage YUM repos just fine. Just make sure to order the resources properly.

A bit more hackishly:

file {'/path/to/your/rpm': ensure => present, source => 'puppet:///wherever/your/rpm/is', }

exec { "yum -y localinstall /path/to/your/rpm": path => ['/usr/bin'], unless => "rpm -q $packagename", requires => File['path/to/your/rpm', }

Of course, this is pseudo-code. Puppet will ensure the file is downloaded to your local OS first and then do a 'yum localinstall' on the RPM.

I still think using yum repos is a better way to manage what you're tring to accomplish.

2017-03-15 09:16:40 -0500 received badge  Popular Question (source)
2017-03-06 09:21:23 -0500 edited question Dependency/Ordering two create_resources statements

I have some RPM packages that need to be installed on my Linux servers. However, there are som RPM/GPG keys that need to go on first. I have both GPG keys and RPM packages in hiera but I don't know how to set up the ordering when I use create_resource()

$rpmkeys = hiera_hash('rpmkeys')
create_resources('rpmkey', $rpmkeys)
$required_packages = hiera_array('required_packages')
create_resources('package', $required_packages)

I've tried putting a require in the Package create_resources() statement but puppet gives me errors:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: Error creating type specialization of a Rpmkey-Type, Cannot use Hash[String, Hash[String, String]] where a resource title String is expected at /etc/puppetlabs/code/modules/profiles/manifests/base.pp:99:33 on node liibt452.healthplan.com","issuekind":"RUNTIMEERROR"} Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Is there a way to specify that ALL rpmkeys are processed before ANY Package resource?