Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created February 7, 2018 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/16d17b31f58c2ef39bd305872621981c to your computer and use it in GitHub Desktop.
Save grahamc/16d17b31f58c2ef39bd305872621981c to your computer and use it in GitHub Desktop.
[nix-shell:~/projects/tweag/terraform-provider-nixos/proof-of-concept/demo]$ export HOME=$(pwd)
[nix-shell:~]$ rm -rf .nils
[nix-shell:~]$ ls
network.nix roles.nix terraform webroot
[nix-shell:~]$ nixops create ./network.nix -d terraform-example
created deployment ‘c285aae8-0c31-11e8-909a-0a0027000000’
c285aae8-0c31-11e8-909a-0a0027000000
[nix-shell:~]$ nixops deploy
error: (sqlalchemy.exc.ResourceClosedError) This Connection is closed [SQL: u"select value from DeploymentAttrs where deployment = 'c285aae8-0c31-11e8-909a-0a0027000000' and name = 'datadogEventInfo'"]
[nix-shell:~]$ nixops list
+--------------------------------------+-------------------+------------------------+------------+------+
| UUID | Name | Description | # Machines | Type |
+--------------------------------------+-------------------+------------------------+------------+------+
| c285aae8-0c31-11e8-909a-0a0027000000 | terraform-example | Unnamed NixOps network | 1 | none |
+--------------------------------------+-------------------+------------------------+------------+------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment