Skip to content

Instantly share code, notes, and snippets.

View flamarion's full-sized avatar

Flamarion Jorge flamarion

View GitHub Profile

Keybase proof

I hereby claim:

  • I am flamarion on github.
  • I am flamarion (https://keybase.io/flamarion) on keybase.
  • I have a public key ASCcK7SrVqCp2_Fc98WKk_E2TWz80Hms_9yT3TT2Je2Qfgo

To claim this, I am signing this object:

{
"variables": {
"ami_users": "",
"aws_namespace": "unix",
"aws_region": "{{ env `AWS_REGION` }}",
"aws_access_key_id": "",
"aws_secret_access_key": "",
"aws_bucket_name": "{{ env `AWS_BUCKET_NAME` }}",
"bootstrap_dir": "/bootstrap",
"branch_name": "",
Issue
=======
$echo $AWS_BUCKET_NAME
bbb
$ cat centos-7-x86_64-aws.json | grep -i BUCKET
"aws_bucket_name": "{{ env `AWS_BUCKET_NAME` }}",
"s3_bucket_name": "{{ user `aws_bucket_name` }}",
$ packer inspect centos-7-x86_64-aws.json
"post-processors": [
{
"type": "shell-local",
"inline": [
"set -ex",
"echo \"Setting Variables\"",
"output_dir=\"output/{{ user `azr_namespace` }}-{{ user `os_name` }}-{{ user `os_version` }}-x86_64-base-{{ user `branch_name` }}-b{{ user `build_number` }}\"",
"ovafile=\"${output_dir}/{{ user `azr_namespace` }}-{{ user `os_name` }}-{{ user `os_version` }}-x86_64-base-{{ user `branch_name` }}-b{{ user `build_number` }}.ova\"",
"vmdkfile=$(tar -tf ${ovafile} | grep -i vmdk)",
"rawfile=\"${output_dir}/{{ user `azr_namespace` }}-{{ user `os_name` }}-{{ user `os_version` }}-x86_64-base-{{ user `branch_name` }}-b{{ user `build_number` }}.raw\"",
from random import randint
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
for row in board:
print " ".join(row)

Keybase proof

I hereby claim:

  • I am flamarion on github.
  • I am flamarion (https://keybase.io/flamarion) on keybase.
  • I have a public key ASBjMG4m8q3PxUp29akQT1LJhQpmqHWuw0VMdblqi8miHwo

To claim this, I am signing this object: