Skip to content

Commit

Permalink
Merge pull request #16 from docker/AMIname
Browse files Browse the repository at this point in the history
AMI naming
  • Loading branch information
pcaskey authored Feb 11, 2017
2 parents 45df8b5 + e2ddddc commit ac6480f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions comanage-appliance.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"variables": {
"profile": "xfs",
"disk_size": "20000",
"memory": "6122",
"cpus": "2",
"memory": "2048",
"cpus": "1",
"ssh_username": "centos",
"ssh_password": "centos",
"region": "us-west-1",
Expand Down
3 changes: 3 additions & 0 deletions scripts/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY

# Disable the centos user
chsh -s /bin/false centos

# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
sync
7 changes: 5 additions & 2 deletions shibboleth-appliance.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"ssh_password": "centos",
"region": "us-west-1",
"timestamper": "{{timestamp}}",
"outputfile_name": "shibboleth-appliance-centos7"
"outputfile_name": "shibboleth-appliance-centos7",
"build_number": "{{env `BUILD_NUMBER`}}"
},
"provisioners": [
{
Expand Down Expand Up @@ -70,9 +71,11 @@
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `region`}}",
"ami_name": "TIER-Shibb Build: {{user `build_number`}}",
"s3_bucket_name": "internet2-tier-ami-import-us-west-1",
"tags": {
"Description": "packer amazon-import-shibboleth-appliance {{user `timestamper`}}"
"Description": "packer amazon-import-shibboleth-appliance {{user `timestamper`}}",
"Name": "TIER-Shibb Build: {{user `build_number`}}"
}
}
]
Expand Down

0 comments on commit ac6480f

Please sign in to comment.