Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: docker/packer-centos-7
base: master
Choose a base ref
...
head repository: docker/packer-centos-7
compare: comanage-production
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on Sep 13, 2016

  1. Fix cleanup directory for Virtual Box VMs.

    Mason Packard committed Sep 13, 2016
    Copy the full SHA
    ea76abc View commit details
  2. Adjust cleanup of virtual box vm directory.

    Mason Packard committed Sep 13, 2016
    Copy the full SHA
    8ff6e02 View commit details
  3. Adjust cleanup of virtual box vm directory.

    Mason Packard committed Sep 13, 2016
    Copy the full SHA
    64ef3af View commit details
  4. Adjust cleanup of virtual box vm directory.

    Mason Packard committed Sep 13, 2016
    Copy the full SHA
    524fe1d View commit details

Commits on Sep 14, 2016

  1. Copy the full SHA
    69bae96 View commit details
  2. Copy the full SHA
    224ec99 View commit details
  3. Merge branch 'master' into comanage-production

    Mason Packard committed Sep 14, 2016
    Copy the full SHA
    2f33671 View commit details

Commits on Sep 22, 2016

  1. Using TIER account #

    Jim Van Fleet committed Sep 22, 2016
    Copy the full SHA
    c578f62 View commit details
  2. Completed move to TIER

    Jim Van Fleet committed Sep 22, 2016
    Copy the full SHA
    187d4c2 View commit details
  3. Change Packer post-processor bucket name

    Mason Packard committed Sep 22, 2016
    Copy the full SHA
    c08b15e View commit details

Commits on Sep 23, 2016

  1. Merge branch 'master' into comanage-production

    Mason Packard committed Sep 23, 2016
    Copy the full SHA
    2486123 View commit details

Commits on Nov 8, 2016

  1. Ansible is now desired on the appliances

    Jim Van Fleet committed Nov 8, 2016
    Copy the full SHA
    60d1f2b View commit details
  2. Removing vagrant processing

    Jim Van Fleet committed Nov 8, 2016
    Copy the full SHA
    0619687 View commit details
  3. Removing vagrant processing from build script

    Jim Van Fleet committed Nov 8, 2016
    Copy the full SHA
    bfb0a73 View commit details

Commits on Nov 15, 2016

  1. Removing vagrant processing from build script

    villadalmine committed Nov 15, 2016
    Copy the full SHA
    b5adec8 View commit details
  2. Update perms.sh

    villadalmine committed Nov 15, 2016
    Copy the full SHA
    27c62ea View commit details

Commits on Dec 6, 2016

  1. reduce resource

    reduce vm memory size and cpu
    villadalmine committed Dec 6, 2016
    Copy the full SHA
    86164a9 View commit details

Commits on Jan 9, 2017

  1. Updating CentOS ISO information

    Jim Van Fleet committed Jan 9, 2017
    Copy the full SHA
    03f335d View commit details

Commits on Feb 9, 2017

  1. Update cleanup.sh

    chubing committed Feb 9, 2017
    Copy the full SHA
    c14826a View commit details
  2. Update cleanup.sh

    chubing committed Feb 9, 2017
    Copy the full SHA
    da2add1 View commit details
  3. Update cleanup.sh

    chubing committed Feb 9, 2017
    Copy the full SHA
    622d899 View commit details
  4. Update cleanup.sh

    chubing committed Feb 9, 2017
    Copy the full SHA
    400249f View commit details
  5. Update cleanup.sh

    chubing committed Feb 9, 2017
    Copy the full SHA
    1daf412 View commit details

Commits on Feb 11, 2017

  1. Copy the full SHA
    6812050 View commit details
  2. add AMI 'Name' tag to AWS export post-processors for COmanage and gro…

    …uper to include product and build number
    pcaskey committed Feb 11, 2017
    Copy the full SHA
    e5b2d3e View commit details
  3. Merge pull request #18 from docker/AMIname

    add AMI name with product and build
    pcaskey committed Feb 11, 2017
    Copy the full SHA
    2457e60 View commit details

Commits on Feb 17, 2017

  1. Copy the full SHA
    344dce0 View commit details
  2. Copy the full SHA
    aa6625c View commit details

Commits on Mar 14, 2017

  1. Update ansible.sh

    chubing committed Mar 14, 2017
    Copy the full SHA
    e66fcc7 View commit details
  2. Update cleanup.sh

    chubing committed Mar 14, 2017
    Copy the full SHA
    7b7f7d6 View commit details

Commits on Apr 10, 2017

  1. Copy the full SHA
    f7cf408 View commit details

Commits on Apr 21, 2017

  1. Copy the full SHA
    6843ba6 View commit details
  2. fix typo

    pcaskey committed Apr 21, 2017
    Copy the full SHA
    349f45a View commit details

Commits on Jul 13, 2017

  1. Copy the full SHA
    7967740 View commit details

Commits on Jan 5, 2018

  1. Copy the full SHA
    04ec5cc View commit details

Commits on Jun 20, 2018

  1. Copy the full SHA
    c131d92 View commit details
Showing with 24 additions and 13 deletions.
  1. +3 −4 bin/perms.sh
  2. +12 −6 comanage-appliance.json
  3. +2 −1 grouper-appliance.json
  4. +6 −0 scripts/ansible.sh
  5. +1 −1 scripts/cleanup.sh
  6. +0 −1 shibboleth-appliance.json
7 changes: 3 additions & 4 deletions bin/perms.sh
@@ -1,6 +1,7 @@
#!/bin/bash

aws_acct_id="823003027569"
aws_acct_id_plus="886593122405"
bucket="internet2-tier-appliance-us-west-1"

ova_key=$(aws s3api list-objects --bucket $bucket --query 'reverse(sort_by(Contents[?contains(Key, `ova`)], &LastModified))[0].[Key]' --output text | tr -d '\n' )
@@ -13,10 +14,8 @@ echo "(https://s3-us-west-1.amazonaws.com/$bucket/$ova_key)"
echo $(md5sum builds/$ova_key)

ami_id=$(aws ec2 describe-images --owners $aws_acct_id --query 'reverse(sort_by(Images[?starts_with(Name, `import-ami`)], &CreationDate))[0].[ImageId]' --output text | tr -d '\n' )
echo "Publishing $ami_id to $aws_acct_id"

ami_image_description=$(aws ec2 describe-images --image-ids $ami_id --query 'Images[0].{Description:Tags[0].Value}')
echo $ami_image_description
echo "Publishing $ami_id to all accounts"

aws ec2 modify-image-attribute --image-id $ami_id --launch-permission "{\"Add\":[{\"UserId\":\"$aws_acct_id\"}]}"
aws ec2 modify-image-attribute --image-id $ami_id --launch-permission "{\"Add\":[{\"UserId\":\"$aws_acct_id_plus\"}]}"

18 changes: 12 additions & 6 deletions comanage-appliance.json
@@ -10,7 +10,8 @@
"ssh_password": "centos",
"region": "us-west-1",
"timestamper": "{{timestamp}}",
"outputfile_name": "comanage-appliance-centos7"
"outputfile_name": "comanage-appliance-centos7",
"build_number": "{{env `BUILD_NUMBER`}}"
},
"provisioners": [
{
@@ -27,6 +28,10 @@
"type": "shell",
"execute_command": "echo 'centos' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/cleanup.sh"
},
{
"type": "shell",
"inline": ["sudo echo 'TIERBUILD='{{user `build_number`}} > /home/centos/buildenv.bash"]
}
],
"builders": [
@@ -41,8 +46,8 @@
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
],
"iso_url": "http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
"iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
"iso_url": "http://mirrors.mit.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1804.iso",
"iso_checksum": "714acc0aefb32b7d51b515e25546835e55a90da9fb00417fbee2d03a62801efd",
"iso_checksum_type": "sha256",
"http_directory": "http",
"boot_command": ["<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks-{{user `profile`}}.cfg<enter><wait>"],
@@ -61,16 +66,17 @@
{
"type": "compress",
"compression_level": "9",
"output": "builds/{{user `outputfile_name`}}-ova-{{user `timestamper`}}.tar"
"output": "builds/TIER-{{user `outputfile_name`}}-ova-{{user `timestamper`}}.tar"
},
{
"type": "amazon-import",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `region`}}",
"s3_bucket_name": "internet2-ami-import-us-west-1",
"s3_bucket_name": "internet2-tier-ami-import-us-west-1",
"tags": {
"Description": "packer amazon-import-comanage-appliance {{user `timestamper`}}"
"Description": "packer amazon-import-comanage-appliance {{user `timestamper`}}",
"Name": "TIER-COmanage Build: {{user `build_number`}}"
}
}
]
3 changes: 2 additions & 1 deletion grouper-appliance.json
@@ -72,7 +72,8 @@
"region": "{{user `region`}}",
"s3_bucket_name": "internet2-tier-ami-import-us-west-1",
"tags": {
"Description": "packer amazon-import-grouper-appliance {{user `timestamper`}}"
"Description": "packer amazon-import-grouper-appliance {{user `timestamper`}}",
"Name": "TIER-Shibb Build: {{user `build_number`}}"
}
}
]
6 changes: 6 additions & 0 deletions scripts/ansible.sh
@@ -5,3 +5,9 @@ yum -y install epel-release

# Install Ansible.
yum -y install ansible

# Install Yum Crom
yum -y install yum-cron

# Install Cloud init support
# yum -y install cloud-init
2 changes: 1 addition & 1 deletion scripts/cleanup.sh
@@ -5,7 +5,7 @@ dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY

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

# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
sync
1 change: 0 additions & 1 deletion shibboleth-appliance.json
@@ -71,7 +71,6 @@
"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`}}",