Skip to content

Instantly share code, notes, and snippets.

@cwarner-mdsol
Created December 8, 2015 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwarner-mdsol/f355dcc462974cb5f1e4 to your computer and use it in GitHub Desktop.
Save cwarner-mdsol/f355dcc462974cb5f1e4 to your computer and use it in GitHub Desktop.
Provisioning steps for ami-3a347a50
amazon-ebs output will be in this color.
==> amazon-ebs: Inspecting the source AMI...
==> amazon-ebs: Creating temporary keypair: packer 5665dfb0-df43-d780-83e9-0d15973d00c7
==> amazon-ebs: Creating temporary security group for this instance...
==> amazon-ebs: Authorizing SSH access on the temporary security group...
==> amazon-ebs: Launching a source AWS instance...
amazon-ebs: Instance ID: i-753017c5
==> amazon-ebs: Waiting for instance (i-753017c5) to become ready...
==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Provisioning with Ansible...
amazon-ebs: Creating Ansible staging directory...
amazon-ebs: Creating directory: /tmp/packer-provisioner-ansible-local
amazon-ebs: Uploading main Playbook file...
amazon-ebs: Uploading inventory file...
amazon-ebs: Executing Ansible: cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/masterbuilder-run-aqs_Vc -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local855574884
amazon-ebs:
amazon-ebs: PLAY [localhost] **************************************************************
amazon-ebs:
amazon-ebs: GATHERING FACTS ***************************************************************
amazon-ebs: ok: [localhost]
amazon-ebs:
amazon-ebs: TASK: [shell curl -v -L -b oraclelicense=accept-securebackup-cookie -O http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-linux-x64.tar.gz
amazon-ebs: ] ***
amazon-ebs: changed: [localhost]
amazon-ebs:
amazon-ebs: TASK: [file path=/usr/lib/jvm state=directory] ********************************
amazon-ebs: changed: [localhost]
amazon-ebs:
amazon-ebs: TASK: [unarchive src=/tmp/jdk-8u66-linux-x64.tar.gz dest=/usr/lib/jvm] ********
amazon-ebs: changed: [localhost]
amazon-ebs:
amazon-ebs: PLAY RECAP ********************************************************************
amazon-ebs: localhost : ok=4 changed=3 unreachable=0 failed=0
amazon-ebs:
==> amazon-ebs: Provisioning with Ansible...
amazon-ebs: Creating Ansible staging directory...
amazon-ebs: Creating directory: /tmp/packer-provisioner-ansible-local
amazon-ebs: Uploading main Playbook file...
amazon-ebs: Uploading inventory file...
amazon-ebs: Executing Ansible: cd /tmp/packer-provisioner-ansible-local && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook /tmp/packer-provisioner-ansible-local/package.yml -c local -i /tmp/packer-provisioner-ansible-local/packer-provisioner-ansible-local248899115
amazon-ebs:
amazon-ebs: PLAY [localhost] **************************************************************
amazon-ebs:
amazon-ebs: GATHERING FACTS ***************************************************************
amazon-ebs: ok: [localhost]
amazon-ebs:
amazon-ebs: TASK: [shell /usr/bin/apt --installed list > /tmp/package.list
amazon-ebs: ] **************
amazon-ebs: changed: [localhost]
amazon-ebs:
amazon-ebs: TASK: [shell /bin/cat /tmp/package.list
amazon-ebs: ] *************************************
amazon-ebs: changed: [localhost]
amazon-ebs:
amazon-ebs: TASK: [shell /usr/bin/curl -X PUT -d "{{ package_list.stdout }}" http://kvcluster.imedidata.com:8500/v1/kv/images/ami/Medidata_Ubuntu_14.04_Java_8-aceabfec-9d19-11e5-a422-22000bb5e0d1/packages] ***
amazon-ebs: changed: [localhost]
amazon-ebs:
amazon-ebs: PLAY RECAP ********************************************************************
amazon-ebs: localhost : ok=4 changed=3 unreachable=0 failed=0
amazon-ebs:
==> amazon-ebs: Stopping the source instance...
==> amazon-ebs: Waiting for the instance to stop...
==> amazon-ebs: Creating the AMI: Medidata_Ubuntu_14.04_Java_8-aceabfec-9d19-11e5-a422-22000bb5e0d1
amazon-ebs: AMI: ami-3a347a50
==> amazon-ebs: Waiting for AMI to become ready...
==> amazon-ebs: Modifying attributes on AMI (ami-3a347a50)...
amazon-ebs: Modifying: description
amazon-ebs: Modifying: users
==> amazon-ebs: Adding tags to AMI (ami-3a347a50)...
amazon-ebs: Adding tag: "Created": "2015-12-07"
amazon-ebs: Adding tag: "Name": "Medidata_Ubuntu_14.04_Java_8"
amazon-ebs: Adding tag: "Provenance": "ami-c43779ae"
amazon-ebs: Adding tag: "SourceImage": "False"
amazon-ebs: Adding tag: "Tested": "2015-12-07T19:36:16Z"
amazon-ebs: Adding tag: "Archive": "False"
amazon-ebs: Adding tag: "Built": "infrastructure"
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' finished.
==> Builds finished. The artifacts of successful builds are:
--> amazon-ebs: AMIs were created:
us-east-1: ami-3a347a50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment