Sharing hiera across multiple environments
Hello, How do you share common hiera values across multiple environments (e.g. staging, production, testing) using puppet with r10k? And how do you deploy those defaults automatically? I've got...
View ArticleCustom facts in hiera hierachy not working in CentOS 7
I'm trying to debug a problem where the custom facts from a node are not being used correctly when looking for hiera data. This is my hiera.yaml file: --- :backends: - eyaml - yaml :hierarchy: -...
View ArticleFresh install deployment fails via guided Install.
I'm trying to install puppet for the first time on a brand new VM running Ubuntu 1604 x64 server. I get right up to the point of starting deployment on the PE console web page but it fails and the log...
View ArticleCopy multiple template files to target location on the puppet agent
I have a requirement wherein there are multiple template files that needs to be copied to the same target path on the puppet agent machine, and the target path is determined by facts. Is there a way to...
View ArticleHow to reuse varibale from hiera hash as another hiera variable?
Lets say I have # hash some_application::users: some_user: username: 'some_username' password: 'some_password' another_user: username: 'another_username' password: 'another_password' And I want to...
View ArticleBasic Help Installing Chocolatey
Hi, I am completely new to Puppet, but reading and learning a lot! I have a working Puppet master with Foreman, and 2 nodes set up and working correctly. I have been pulling my hair out trying to...
View ArticleChocolatey/Nuget/Hiera
Hi, We are planning on using ProGet, using different feeds containing certain packages for different departmental groups. We will be using Chocolatey with Puppet. We are using Hiera, so we will be...
View ArticleChocolatey Package naming
Hi, If my package name is nsclient64.1.0.0.1.nupkg, is below still the proper way to reference the package name? class nsclient64 { package { 'nsclient64': ensure => '1.0.0.1', provider =>...
View ArticleInstall Chocolatey package what is syntax for source?
Hi, I am testing the following... class nsclient64 { package { 'nsclient64': ensure => '1.0.0.1', provider => 'chocolatey' source => 'http://servername:81/nuget/puppet', install_options =>...
View Articlemodifying hash key name within the puppet manifest
I'm working with a bit older version of puppet still (3.x), and am having an issue with hash key names conflicting. I have a defined type, that's being called from multiple other modules. In the...
View ArticleHow would you handle injection of a configuration file for a Puppet module?
I'm writing a puppet module for an inhouse application that needs configuration information to access several services: internal APIs, AMQP services, MongoDB database. It accepts a configuration file...
View ArticleCould not retrieve catalog on Puppet/PuppetDB install
Hi there, I have an issue on my agents like following: Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find node 'mynode.domain.tld'; cannot compile...
View Articlepuppet v4 case statement variable set but not matched
Consider class php::classes::install { notify { "operatingsystemmajrelease = $operatingsystemmajrelease": } case $operatingsystemmajrelease { 5: { $php_packages = [ 'php53', 'php53-cli',...
View Articlehow to create dependencies for Exec and define, and stop define from running...
All I wanted to do is, creating the below flow and its dependencies - 1) Detect a change in file ( deploy.cfg ) - 2) If there is a change, run Nexus::Artifact[ "nexus-artifact" ] - 3) After...
View Articlepuppet enterprise 2016.2.1 installation error
I tried to install puppet enterprise 2016.2.1 on ubuntu 12.04, but I met with the error message " Unable to locate package pe-installer", and the web server was not open. I tried searching for...
View ArticleMass deployment of files.
Im trying to automatically apply a set of files in one large lump based on a directory structure we have used in the past and some scripts outside puppet. e.g. ROOT-DIR/etc/motd:RHEL-7...
View ArticleIs there a way of getting a file to be deployed into a variable to check and use
Im trying to define a class that will .given a source directory structure on the master, deliver a set of files depending on the node. We used this type prior to puppet. e.g. ROOT-DIR/etc/motd:RHEL...
View Articlepuppet-confluence module
Hey, I'm rather new to puppet so please have mercy, if my question is too stupid^^ Trying to install the module puppet confluence i allways run into the same error and I have no clue why: Oct 11...
View ArticlePuppet environment per service
I'm attempting to design our Puppet workflow, and one concern I have with the workflows as described at http://garylarizza.com/blog/2015/11/16/workflows-evolved-even-besterer-practices/ is that module...
View ArticleRunning foreman as puppet console
We are setting up foreman to run as puppet console for reporting and ENC, now we are facing two problems... - Puppet is not able upload facts to foreman - Smart class parameters are not working as...
View Article