<commit_before>---
description: Travis CI sugilite build env template
variables:
  gce_account_file: "{{ env `GCE_ACCOUNT_FILE` }}"
  gce_image_name: "travis-ci-sugilite-trusty-{{ timestamp }}"
  gce_project_id: "{{ env `GCE_PROJECT_ID` }}"
  travis_cookbooks_branch: "{{ env `TRAVIS_COOKBOOKS_BRANCH` }}"
  travis_cookbooks_edge_branch: master
  travis_cookbooks_sha: "{{ env `TRAVIS_COOKBOOKS_SHA` }}"
builders:
- type: googlecompute
  name: googlecompute
  communicator: ssh
  ssh_timeout: 10m
  ssh_port: 22
  image_description: Travis CI sugilite
  account_file: "{{ user `gce_account_file` }}"
  project_id: "{{ user `gce_project_id` }}"
  source_image: ubuntu-1404-trusty-v20160627
  zone: us-central1-a
  image_name: "{{ user `gce_image_name` }}"
  machine_type: n1-standard-4
  disk_size: 30
  tags:
  - ci
  - sugilite
  - travis-ci-packer-templates
provisioners:
- type: shell
  inline: sleep 10
  only:
  - googlecompute
- type: file
  source: tmp/git-meta
  destination: /var/tmp/git-meta
- type: file
  source: packer-assets/ubuntu-trusty-normal-purge.txt
  destination: "/var/tmp/purge.txt"
- type: file
  source: packer-assets/ubuntu-trusty-ci-sugilite-packages.txt
  destination: "/var/tmp/packages.txt"
- type: shell
  scripts:
  - packer-scripts/packer-env-dump
  - packer-scripts/remove-default-users
  - packer-scripts/pre-chef-bootstrap
  - packer-scripts/clone-travis-cookbooks
  environment_vars:
  - TRAVIS_COOKBOOKS_BRANCH={{ user `travis_cookbooks_branch` }}
  - TRAVIS_COOKBOOKS_SHA={{ user `travis_cookbooks_sha` }}
  execute_command: "{{ .Vars }} exec sudo -E -S bash '{{ .Path }}'"
- type: file
  source: packer-assets/system-info-commands.yml
  destination: "/var/tmp/system-info-commands.yml"
- type: shell
  inline: chmod 0644 /var/tmp/system-info-commands.yml
- type: chef-solo
  config_template: chef-solo.rb.tmpl
  cookbook_paths:
  - cookbooks
  <% if ENV['COOKBOOKS_LOCAL'] && ENV['TRAVIS_COOKBOOKS_DIR'] %>
  - <%= ENV['TRAVIS_COOKBOOKS_DIR'] %>/cookbooks
  - <%= ENV['TRAVIS_COOKBOOKS_DIR'] %>/community-cookbooks
  <% else %>
  remote_cookbook_paths:
  - "/tmp/chef-stuff/travis-cookbooks/cookbooks"
  - "/tmp/chef-stuff/travis-cookbooks/community-cookbooks"
  <% end %>
  json: {}
  run_list:<commit_msg>Trivial quoting changes to bump sugilite<commit_after>---
description: Travis CI sugilite build env template
variables:
  gce_account_file: "{{ env `GCE_ACCOUNT_FILE` }}"
  gce_image_name: travis-ci-sugilite-trusty-{{ timestamp }}
  gce_project_id: "{{ env `GCE_PROJECT_ID` }}"
  travis_cookbooks_branch: "{{ env `TRAVIS_COOKBOOKS_BRANCH` }}"
  travis_cookbooks_edge_branch: master
  travis_cookbooks_sha: "{{ env `TRAVIS_COOKBOOKS_SHA` }}"
builders:
- type: googlecompute
  name: googlecompute
  communicator: ssh
  ssh_timeout: 10m
  ssh_port: 22
  image_description: Travis CI sugilite
  account_file: "{{ user `gce_account_file` }}"
  project_id: "{{ user `gce_project_id` }}"
  source_image: ubuntu-1404-trusty-v20160627
  zone: us-central1-a
  image_name: "{{ user `gce_image_name` }}"
  machine_type: n1-standard-4
  disk_size: 30
  tags:
  - ci
  - sugilite
  - travis-ci-packer-templates
provisioners:
- type: shell
  inline: sleep 10
  only:
  - googlecompute
- type: file
  source: tmp/git-meta
  destination: /var/tmp/git-meta
- type: file
  source: packer-assets/ubuntu-trusty-normal-purge.txt
  destination: /var/tmp/purge.txt
- type: file
  source: packer-assets/ubuntu-trusty-ci-sugilite-packages.txt
  destination: /var/tmp/packages.txt
- type: shell
  scripts:
  - packer-scripts/packer-env-dump
  - packer-scripts/remove-default-users
  - packer-scripts/pre-chef-bootstrap
  - packer-scripts/clone-travis-cookbooks
  environment_vars:
  - TRAVIS_COOKBOOKS_BRANCH={{ user `travis_cookbooks_branch` }}
  - TRAVIS_COOKBOOKS_SHA={{ user `travis_cookbooks_sha` }}
  execute_command: "{{ .Vars }} exec sudo -E -S bash '{{ .Path }}'"
- type: file
  source: packer-assets/system-info-commands.yml
  destination: /var/tmp/system-info-commands.yml
- type: shell
  inline: chmod 0644 /var/tmp/system-info-commands.yml
- type: chef-solo
  config_template: chef-solo.rb.tmpl
  cookbook_paths:
  - cookbooks
  <% if ENV['COOKBOOKS_LOCAL'] && ENV['TRAVIS_COOKBOOKS_DIR'] %>
  - <%= ENV['TRAVIS_COOKBOOKS_DIR'] %>/cookbooks
  - <%= ENV['TRAVIS_COOKBOOKS_DIR'] %>/community-cookbooks
  <% else %>
  remote_cookbook_paths:
  - /tmp/chef-stuff/travis-cookbooks/cookbooks
  - /tmp/chef-stuff/travis-cookbooks/community-cookbooks
  <% end %>
  json: {}
  run_list:
{'fraction_non_alphanumeric': 0.13883344422266578, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 4.172018348623853, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '6764801', 'n_tokens_mistral': 1867, 'n_tokens_neox': 1772, 'n_words': 288}