Puppet Reference

August 3, 2018

Applying configuration

  • sudo puppet agent -t --noop - Pull config from puppet master, pretend to make changes
  • sudo puppet agent -t - Pull config from puppet master, make changes

Modules

  • puppet module list - list modules
  • puppet module install puppetlabs-postgresql --version 4.9.0 - install forge module into local puppet master
  • puppet job ...

Security Group not found in VPC

July 24, 2018

I got the following error whilst creating an EC2 machine using terraform:

* aws_instance.drumcoder-web: Error launching source instance: InvalidGroup.NotFound: 
The security group 'admin-access-security-group' does not exist in VPC 'vpc-0d12345'
    status code: 400, request id: abc123

Looking at the AWS console, the security group did exist and was in the ...

Terraform: run script on new server

July 22, 2018

I'm provisioning a new machine on AWS using terraform, and I want to use puppet to configure it. I don't need to have a puppet server, I just want to put a puppet file onto the machine and then execute it with puppet.

Terraform

The initial terraform script ...

Sharing Drives on VirtualBox

July 20, 2018

I have a Windows 10 host running VirtualBox, and I have a Windows 7 guest os. I wanted to get files from the Windows 10 box through to the Windows 7 box. This can be done using Shared Folders if you have the guest additions installed.

In the VirtualBox window ...

jps - ps just for Java

July 11, 2018

I came across a command today that I didn't know existed. It's part of the JVM and it lists just the java processes running on a given machine:

$ jps
2946 org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
3144 GradleDaemon 
3083 GradleDaemon
24092 Jps

If can also list ...

Tags: jps ps java