July, 2014 | [Dev|Web|Sys]Ops
image_pdfimage_print
Error: undefined method downcase

Error: undefined method downcase

I’ve got multiple versions of puppet installed on my machine: 1) 3.x for regular use 2) 2.7 to generate puppetdoc. Puppetdoc is buggy in 3.x so I had to install an older version I installed puppet 2.7 in my user’s .gem folder under the home dir (~/.gem). When I run puppet, I get an error: […]

create_resources and hiera

create_resources and hiera

When using create_resources to instantiate defined resources with hiera, it is a good practice to include the last parameter to the create_resources function – the defaults parameter. The easiest thing is to set the default to an empty hash ‘{}’. If you don’t do this AND you don’t list the data item in hiera, you […]

Use FPM to create java jdk RPM package

Use FPM to create java jdk RPM package

Creating packages from redhat or debian systems can be a royal pain. FPM takes some of the pain away. Refer to the FPM wiki for install and usage instructions. To create an RPM for Oracle’s (sun) java jdk 7: Download jdk7 from Oracle site. (example, jdk1.7.0_65) untar into /opt folder, (result: /opt/jdk1.7.0_65) create alternatives.sh script in the […]

image_pdfimage_print