<commit_before>{
  "variables": {
    "base_ovf_path": "",
    "vm_name": "PegasusTutorialVM",
    "vm_version": ""
  },
  "builders": [
    {
      "name": "aws",
      "type": "virtualbox-ovf",
      "source_path": "{{ user `base_ovf_path` }}",
      "ssh_username": "root",
      "ssh_password": "<PASSWORD>",
      "ssh_port": 22,
      "http_directory": "http",
      "shutdown_command": "/sbin/halt -h --poweroff",
      "shutdown_timeout": "5m",
      "guest_additions_mode": "disable",
      "headless": true,
      "format": "ova",
      "output_directory": "output/{{ build_name }}",
      "vm_name": "{{ user `vm_name` }}-{{ user `vm_version` }}",
      "vboxmanage": [
        [ "modifyvm", "{{ .Name }}", "--cpus", "1" ],
        [ "modifyvm", "{{ .Name }}", "--memory", "1024" ]
      ]
    },
    {
      "name": "virtualbox",
      "type": "virtualbox-ovf",
      "source_path": "{{ user `base_ovf_path` }}",
      "ssh_username": "root",
      "ssh_password": "<PASSWORD>",
      "ssh_port": 22,
      "http_directory": "http",
      "shutdown_command": "/sbin/halt -h --poweroff",
      "shutdown_timeout": "5m",
      "guest_additions_path": "VBoxGuestAdditions_{{ .Version }}.iso",
      "virtualbox_version_file": ".vbox_version",
      "headless": true,
      "format": "ova",
      "output_directory": "output/{{ build_name }}",
      "vm_name": "{{ user `vm_name` }}-{{ user `vm_version` }}",
      "vboxmanage": [
        [ "modifyvm", "{{ .Name }}", "--cpus", "1" ],
        [ "modifyvm", "{{ .Name }}", "--memory", "1024" ],
        [ "modifyvm", "{{ .Name }}", "--clipboard", "bidirectional" ]
      ]
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "start_retry_timeout": "5m",
      "scripts": [
        "scripts/update.sh"
      ]
    },
    {
      "type": "shell",
      "pause_before": "1m",
      "environment_vars": [
        "USERNAME=tutorial"
      ],
      "scripts": [
        "scripts/xfce.sh",
        "scripts/virtualbox/guest-additions.sh"
      ],
      "only": [
        "virtualbox"
      ]
    },
    {
      "type": "shell",
      "scripts": [
        "scripts/aws/cloud-init.sh",
        "scripts/secure-root.sh"
      ],
      "only": [
        "aws"
      ]
    },
    {
      "type": "shell",
      "scripts": [
        "scripts/pegasus-service.sh",<commit_msg>Invoke aws cleanup to disable firewalld<commit_after>{
  "variables": {
    "base_ovf_path": "",
    "vm_name": "PegasusTutorialVM",
    "vm_version": ""
  },
  "builders": [
    {
      "name": "aws",
      "type": "virtualbox-ovf",
      "source_path": "{{ user `base_ovf_path` }}",
      "ssh_username": "root",
      "ssh_password": "<PASSWORD>",
      "ssh_port": 22,
      "http_directory": "http",
      "shutdown_command": "/sbin/halt -h --poweroff",
      "shutdown_timeout": "5m",
      "guest_additions_mode": "disable",
      "headless": true,
      "format": "ova",
      "output_directory": "output/{{ build_name }}",
      "vm_name": "{{ user `vm_name` }}-{{ user `vm_version` }}",
      "vboxmanage": [
        [ "modifyvm", "{{ .Name }}", "--cpus", "1" ],
        [ "modifyvm", "{{ .Name }}", "--memory", "1024" ]
      ]
    },
    {
      "name": "virtualbox",
      "type": "virtualbox-ovf",
      "source_path": "{{ user `base_ovf_path` }}",
      "ssh_username": "root",
      "ssh_password": "<PASSWORD>",
      "ssh_port": 22,
      "http_directory": "http",
      "shutdown_command": "/sbin/halt -h --poweroff",
      "shutdown_timeout": "5m",
      "guest_additions_path": "VBoxGuestAdditions_{{ .Version }}.iso",
      "virtualbox_version_file": ".vbox_version",
      "headless": true,
      "format": "ova",
      "output_directory": "output/{{ build_name }}",
      "vm_name": "{{ user `vm_name` }}-{{ user `vm_version` }}",
      "vboxmanage": [
        [ "modifyvm", "{{ .Name }}", "--cpus", "1" ],
        [ "modifyvm", "{{ .Name }}", "--memory", "1024" ],
        [ "modifyvm", "{{ .Name }}", "--clipboard", "bidirectional" ]
      ]
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "start_retry_timeout": "5m",
      "scripts": [
        "scripts/update.sh"
      ]
    },
    {
      "type": "shell",
      "pause_before": "1m",
      "environment_vars": [
        "USERNAME=tutorial"
      ],
      "scripts": [
        "scripts/xfce.sh",
        "scripts/virtualbox/guest-additions.sh"
      ],
      "only": [
        "virtualbox"
      ]
    },
    {
      "type": "shell",
      "scripts": [
        "scripts/aws/cloud-init.sh",
        "scripts/secure-root.sh",
        "scripts/aws/cleanup.sh"
      ],
      "only": [
        "aws"
      ]
    },
    {
      "type": "shell",
      "scripts": [
        "scripts/pegasus-service.sh",
{'fraction_non_alphanumeric': 0.21921286500211595, 'fraction_numerical': 0.00761743546339399, 'mean_word_length': 2.1555407209612816, 'pattern_counts': {'":': 100, '<': 7, '<?xml version=': 0, '>': 7, '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': '6097713', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1691, 'n_words': 269}