Adding new scriptworker instances of an existing type

We don’t yet have a scriptworker provisioner, so spinning up new instances of a specific type is still a manual process that can definitely use improvement. Here are docs on how to spin a new instance up.

signing scriptworker

gpg keypair

If this is a chain of trust enabled scriptworker, you’ll need to generate a gpg keypair. Otherwise (dev or dep scriptworker), skip to the next step.

Generate and sign a gpg keypair for cltsign@fqdn, per these docs.

The pubkey will need to land in the cot-gpg-keys repo, in the scriptworker/valid directory. The keypair will need to go into puppet hiera, as specified below.


For a signing scriptworker instance, find a valid signing-range IP and add to dns, like the slave loan. These will be in similar subnets to the existing instances:

Go to the EC2 console, go to the appropriate region (usw2, use1).

  • Instances -> Launch Instance -> My AMIs -> centos-65-x86_64-hvm-base-2015-08-28-15-51 -> Select
  • t2-micro -> configure instance details
  • change the subnet to the signing subnet; add a public IP; specify the DNS IP at the bottom -> Add storage
  • General purpose SSD -> Tag Instance
  • Tag with its name, e.g. signing-linux-5 -> Configure security group
  • Select an existing group; choose the signing-worker group; review and launch
  • make sure to choose a keypair you have access to, e.g. aws-releng or generate your own keypair. Puppet will overwrite this.


If this is a chain of trust enabled scriptworker, add the gpg keypair into hiera. This will be the scriptworker_gpg_private_keys and scriptworker_gpg_public_keys dictionaries. The dictionary key is the instance fqdn; the value is the encrypted file.

ssh into the instance as root, using the ssh keypair you specified above.

Install puppet:

    yum -c /etc/yum-local.cfg install puppet

Then puppetize (you need the deploy pass for this):

    # change the hostname so the cert matches
    hostname FQDN
    # grab and run it

It is probably best to reboot after puppetizing. After this point, it should Just Work.