{
  "description": "Prepare base Ubuntu 14.04 server for firmament-docker deploys",
  "prerequisiteGraphUri": "prep-ubuntu-14.04-server-01.json",
  "options": {
    "displayExecutionGraphDescription": true
  },
  "asynchronousCommands": [
    {
      "description": "[sudo] apt-get install ...",
      "suppressOutput": false,
      "suppressDiagnostics": true,
      "showPreAndPostSpawnMessages": true,
      "useSudo": true,
      "command": "apt-get",
      "args": [
        "install",
        "-y",
        "apt-transport-https",
        "ca-certificates",
        "git",
        "cifs-utils",
        "apparmor",
        "libkrb5-dev",
        "docker-engine"
      ]
    },
    {
      "description": "[sudo] npm install -g strongloop",
      "suppressOutput": false,
      "suppressDiagnostics": true,
      "showPreAndPostSpawnMessages": true,
      "useSudo": true,
      "command": "npm",
      "args": [
        "install",
        "-g",
        "strongloop"
      ]
    },
    {
      "description": "[sudo] npm install -g bower",
      "suppressOutput": false,
      "suppressDiagnostics": true,
      "showPreAndPostSpawnMessages": true,
      "useSudo": true,
      "command": "npm",
      "args": [
        "install",
        "-g",
        "bower"
      ]
    }
  ],
  "serialSynchronizedCommands": [
    {
      "description": "git config --global 'user.name'",
      "suppressOutput": false,
      "suppressDiagnostics": true,
      "showPreAndPostSpawnMessages": true,
      "useSudo": false,
      "command": "git",
      "args": [
        "config",
        "--global",
        "user.name",
        "nobody.nobody"
      ]
    },
    {
      "description": "git config --global 'user.email'",
      "suppressOutput": false,
      "suppressDiagnostics": true,
      "showPreAndPostSpawnMessages": true,
      "useSudo": false,
      "command": "git",
      "args": [
        "config",
        "--global",
        "user.email",
        "nobody@nowhere.com"
      ]
    },
    {
      "description": "usermod -aG docker <me>",
      "suppressOutput": false,
      "suppressDiagnostics": true,
      "showPreAndPostSpawnMessages": true,
      "useSudo": false,
      "command": "/usr/bin/env",
      "args": [
        "bash",
        "-c",
        "sudo usermod -aG docker $USER"
      ]
    }
  ]
}
