    config :- Packer]
   (let [{:keys [version sha256-hash]} config
         file-name (str "packer_" version "_linux_amd64.zip")
+        usr-local-lib-dir (str "/usr/local/lib/packer/" version)
         sum-name (str file-name "SHA256SUM")]
     (actions/as-action
       (logging/info (str facility "-install system: install-packer")))

        :literal true
        :content (str sha256-hash " " terraform-file-name)))
    (actions/exec-checked-script
      "install terraform"
      ("curl" "-L" "-o" ~(str "/tmp/" terraform-file-name)
        ~(str "https://releases.hashicorp.com/terraform/" version "/" terraform-file-name))
      ("cd" "/tmp")
      (if (file-exists? ~terraform-sum-name)
        ("sha256sum" "-c" ~terraform-sum-name))
      ("unzip" ~terraform-file-name)
      ("mv" "terraform" "/usr/local/bin/"))))

(s/defn install-system
  [facility :- s/Keyword

   terraform-config :- Terraform]
  (let [{:keys [version sha256-hash]} terraform-config
        terraform-file-name (str "terraform_" version "_linux_amd64.zip")
        usr-local-lib-dir (str "/usr/local/lib/terraform/" version)
        terraform-sum-name (str terraform-file-name "SHA256SUM")]
    (actions/as-action
      (logging/info (str facility "-install system: install-terraform")))
