Catalyst / admin/Synapse-Cortex 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Synapse-Cortex

public

Self Hosted ITSM Tool with RBAC/Tenanting and MFA

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
Synapse-Cortex / Synapse-Cortexv2 / playbooks / full-dist-upgrade-ubuntu-debian.json 2481 B · main
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
  "name": "Full Dist-Upgrade (Ubuntu/Debian)",
  "enabled": true,
  "allowed_target_os": [
    "linux"
  ],
  "required_approval_level": "human_in_the_loop",
  "forbidden_commands": [],
  "acknowledged_dangerous_commands": [
    "host_power"
  ],
  "graph_json": {
    "nodes": [
      {
        "id": "start",
        "type": "start",
        "data": {},
        "position": {
          "x": 250,
          "y": 0
        }
      },
      {
        "id": "cmd_update",
        "type": "command",
        "data": {
          "label": "Refresh package lists",
          "command": "apt-get update"
        },
        "position": {
          "x": 250,
          "y": 130
        }
      },
      {
        "id": "cmd_preview",
        "type": "command",
        "data": {
          "label": "Preview the dist-upgrade (dry run)",
          "command": "apt-get -s dist-upgrade"
        },
        "position": {
          "x": 250,
          "y": 260
        }
      },
      {
        "id": "cmd_upgrade",
        "type": "command",
        "data": {
          "label": "Apply the dist-upgrade",
          "command": "apt-get dist-upgrade -y"
        },
        "position": {
          "x": 250,
          "y": 390
        }
      },
      {
        "id": "cmd_confirm",
        "type": "command",
        "data": {
          "label": "Confirm no upgrades remain",
          "command": "apt list --upgradable"
        },
        "position": {
          "x": 250,
          "y": 520
        }
      },
      {
        "id": "cmd_reboot",
        "type": "command",
        "data": {
          "label": "Reboot only if the upgrade requires it",
          "command": "if [ -f /var/run/reboot-required ]; then reboot; else echo \"No reboot required.\"; fi"
        },
        "position": {
          "x": 250,
          "y": 650
        }
      }
    ],
    "edges": [
      {
        "id": "e_start_cmd_update",
        "source": "start",
        "target": "cmd_update"
      },
      {
        "id": "e_cmd_update_cmd_preview",
        "source": "cmd_update",
        "target": "cmd_preview"
      },
      {
        "id": "e_cmd_preview_cmd_upgrade",
        "source": "cmd_preview",
        "target": "cmd_upgrade"
      },
      {
        "id": "e_cmd_upgrade_cmd_confirm",
        "source": "cmd_upgrade",
        "target": "cmd_confirm"
      },
      {
        "id": "e_cmd_confirm_cmd_reboot",
        "source": "cmd_confirm",
        "target": "cmd_reboot"
      }
    ]
  }
}