<commit_before>{
  "variables": {
    "version": "{{env `GIT_COMMIT`}}",
    "branch": "{{env `GIT_BRANCH`}}",
    "postgresql_password": "{{env `NYC_TREES_DB_PASSWORD`}}",
    "aws_region": "us-east-1",
    "aws_instance_type": "t2.large",
    "aws_ssh_username": "ubuntu",
    "aws_ubuntu_ami": ""
  },
  "builders": [
    {
      "name": "nyc-trees-monitoring",
      "type": "amazon-ebs",
      "region": "{{user `aws_region`}}",
      "source_ami": "{{user `aws_ubuntu_ami`}}",
      "instance_type": "{{user `aws_instance_type`}}",
      "ssh_username": "{{user `aws_ssh_username`}}",
      "ami_name": "nyc-trees-monitoring-{{timestamp}}-{{user `version`}}",
      "run_tags": {
        "PackerBuilder": "amazon-ebs"
      },
      "tags": {
        "Name": "nyc-trees-monitoring",
        "Version": "{{user `version`}}",
        "Branch": "{{user `branch`}}",
        "Created": "{{ isotime }}",
        "Service": "Monitoring",
        "Environment": "Staging"
      }
    },
    {
      "name": "nyc-trees-tiler",
      "type": "amazon-ebs",
      "region": "{{user `aws_region`}}",
      "source_ami": "{{user `aws_ubuntu_ami`}}",
      "instance_type": "{{user `aws_instance_type`}}",
      "ssh_username": "{{user `aws_ssh_username`}}",
      "ami_name": "nyc-trees-tiler-{{timestamp}}-{{user `version`}}",
      "run_tags": {
        "PackerBuilder": "amazon-ebs"
      },
      "tags": {
        "Name": "nyc-trees-tiler",
        "Version": "{{user `version`}}",
        "Branch": "{{user `branch`}}",
        "Created": "{{ isotime }}",
        "Service": "Tiler",
        "Environment": "Staging"
      }
    },
    {
      "name": "nyc-trees-app",
      "type": "amazon-ebs",
      "region": "{{user `aws_region`}}",
      "source_ami": "{{user `aws_ubuntu_ami`}}",
      "instance_type": "{{user `aws_instance_type`}}",
      "ssh_username": "{{user `aws_ssh_username`}}",
      "ami_name": "nyc-trees-app-{{timestamp}}-{{user `version`}}",
      "run_tags": {
        "PackerBuilder": "amazon-ebs"
      },
      "tags": {
        "Name": "nyc-trees-app",
        "Version": "{{user `version`}}",
        "Branch": "{{user `branch`}}",
        "Created": "{{ isotime }}",
        "Service": "Application",
        "Environment": "Staging"
      }
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sleep 5",
        "sudo apt-get update -qq",
        "sudo apt-get install python-pip python-dev -y",
        "sudo pip install ansible==2.0.1.0"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/monitoring-servers.yml",
      "playbook_dir": "ansible",
      "inventory_file": "ansible/inventory/packer-monitoring-server",
      "only": [
        "nyc-trees-monitoring"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/tile-servers.yml",
      "playbook_dir": "ansible",
      "inventory_file": "ansible/inventory/packer-tile-server",
      "extra_arguments": [
        "--extra-vars 'tiler_deploy_branch={{user `version`}} postgresql_password={{user `postgresql_password`}}'"
      ],
      "only": [
        "nyc-trees-tiler"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/app-servers.yml",<commit_msg>Meet Paramiko dependency before installing Ansible<commit_after>{
  "variables": {
    "version": "{{env `GIT_COMMIT`}}",
    "branch": "{{env `GIT_BRANCH`}}",
    "postgresql_password": "{{env `NYC_TREES_DB_PASSWORD`}}",
    "aws_region": "us-east-1",
    "aws_instance_type": "t2.large",
    "aws_ssh_username": "ubuntu",
    "aws_ubuntu_ami": ""
  },
  "builders": [
    {
      "name": "nyc-trees-monitoring",
      "type": "amazon-ebs",
      "region": "{{user `aws_region`}}",
      "source_ami": "{{user `aws_ubuntu_ami`}}",
      "instance_type": "{{user `aws_instance_type`}}",
      "ssh_username": "{{user `aws_ssh_username`}}",
      "ami_name": "nyc-trees-monitoring-{{timestamp}}-{{user `version`}}",
      "run_tags": {
        "PackerBuilder": "amazon-ebs"
      },
      "tags": {
        "Name": "nyc-trees-monitoring",
        "Version": "{{user `version`}}",
        "Branch": "{{user `branch`}}",
        "Created": "{{ isotime }}",
        "Service": "Monitoring",
        "Environment": "Staging"
      }
    },
    {
      "name": "nyc-trees-tiler",
      "type": "amazon-ebs",
      "region": "{{user `aws_region`}}",
      "source_ami": "{{user `aws_ubuntu_ami`}}",
      "instance_type": "{{user `aws_instance_type`}}",
      "ssh_username": "{{user `aws_ssh_username`}}",
      "ami_name": "nyc-trees-tiler-{{timestamp}}-{{user `version`}}",
      "run_tags": {
        "PackerBuilder": "amazon-ebs"
      },
      "tags": {
        "Name": "nyc-trees-tiler",
        "Version": "{{user `version`}}",
        "Branch": "{{user `branch`}}",
        "Created": "{{ isotime }}",
        "Service": "Tiler",
        "Environment": "Staging"
      }
    },
    {
      "name": "nyc-trees-app",
      "type": "amazon-ebs",
      "region": "{{user `aws_region`}}",
      "source_ami": "{{user `aws_ubuntu_ami`}}",
      "instance_type": "{{user `aws_instance_type`}}",
      "ssh_username": "{{user `aws_ssh_username`}}",
      "ami_name": "nyc-trees-app-{{timestamp}}-{{user `version`}}",
      "run_tags": {
        "PackerBuilder": "amazon-ebs"
      },
      "tags": {
        "Name": "nyc-trees-app",
        "Version": "{{user `version`}}",
        "Branch": "{{user `branch`}}",
        "Created": "{{ isotime }}",
        "Service": "Application",
        "Environment": "Staging"
      }
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sleep 5",
        "sudo apt-get update -qq",
        "sudo apt-get install python-pip python-dev -y",
        "sudo pip install paramiko==1.16.0",
        "sudo pip install ansible==2.0.1.0"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/monitoring-servers.yml",
      "playbook_dir": "ansible",
      "inventory_file": "ansible/inventory/packer-monitoring-server",
      "only": [
        "nyc-trees-monitoring"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/tile-servers.yml",
      "playbook_dir": "ansible",
      "inventory_file": "ansible/inventory/packer-tile-server",
      "extra_arguments": [
        "--extra-vars 'tiler_deploy_branch={{user `version`}} postgresql_password={{user `postgresql_password`}}'"
      ],
      "only": [
        "nyc-trees-tiler"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "ansible/app-servers.yml",
{'fraction_non_alphanumeric': 0.21780532043530834, 'fraction_numerical': 0.002720677146311971, 'mean_word_length': 2.561356297093649, 'pattern_counts': {'":': 146, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6692608', 'n_tokens_mistral': 2452, 'n_tokens_neox': 2377, 'n_words': 368}