From 9ae4934062f8b71f9eb9782025b86a7c347ee3fc Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 18 Nov 2021 12:17:43 +0100 Subject: [PATCH] nixopsUnstable: Add nixops-hetzner plugin --- .../networking/cluster/nixops/default.nix | 1 + .../cluster/nixops/poetry-git-overlay.nix | 10 ++++++ .../networking/cluster/nixops/poetry.lock | 35 ++++++++++++++++++- .../networking/cluster/nixops/pyproject.toml | 1 + 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/cluster/nixops/default.nix b/pkgs/applications/networking/cluster/nixops/default.nix index 1fd2e590de22..47875c0fccb9 100644 --- a/pkgs/applications/networking/cluster/nixops/default.nix +++ b/pkgs/applications/networking/cluster/nixops/default.nix @@ -65,6 +65,7 @@ let ps.nixops-encrypted-links ps.nixops-gcp ps.nixops-hercules-ci + ps.nixops-hetzner ps.nixopsvbox ps.nixops-virtd ]) // rec { diff --git a/pkgs/applications/networking/cluster/nixops/poetry-git-overlay.nix b/pkgs/applications/networking/cluster/nixops/poetry-git-overlay.nix index b219a1ef76c4..23c5c7d8fff5 100644 --- a/pkgs/applications/networking/cluster/nixops/poetry-git-overlay.nix +++ b/pkgs/applications/networking/cluster/nixops/poetry-git-overlay.nix @@ -51,6 +51,16 @@ self: super: { } ); + nixops-hetzner = super.nixops-hetzner.overridePythonAttrs ( + _: { + src = pkgs.fetchgit { + url = "https://github.com/NixOS/nixops-hetzner"; + rev = "84f4eebb89b049c4f86aa779349397c3dedc0c43"; + sha256 = "0qx8v775jhlbqyhid8wkzy3xcha08kkzb42h6ayszwq4alyfx0b0"; + }; + } + ); + nixops-virtd = super.nixops-virtd.overridePythonAttrs ( _: { src = pkgs.fetchgit { diff --git a/pkgs/applications/networking/cluster/nixops/poetry.lock b/pkgs/applications/networking/cluster/nixops/poetry.lock index b2253e9b861f..e83d1ed736a2 100644 --- a/pkgs/applications/networking/cluster/nixops/poetry.lock +++ b/pkgs/applications/networking/cluster/nixops/poetry.lock @@ -133,6 +133,14 @@ category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +[[package]] +name = "hetzner" +version = "0.8.3" +description = "High level access to the Hetzner robot" +category = "main" +optional = false +python-versions = "*" + [[package]] name = "idna" version = "3.3" @@ -287,6 +295,27 @@ url = "https://github.com/hercules-ci/nixops-hercules-ci.git" reference = "master" resolved_reference = "e601d5baffd003fd5f22deeaea0cb96444b054dc" +[[package]] +name = "nixops-hetzner" +version = "1.0" +description = "NixOS deployment tool, but for hetzner" +category = "main" +optional = false +python-versions = "^3.7" +develop = false + +[package.dependencies] +hetzner = "0.8.3" +nixops = {git = "https://github.com/NixOS/nixops.git", rev = "master"} +nixos-modules-contrib = {git = "https://github.com/nix-community/nixos-modules-contrib.git", rev = "master"} +typing-extensions = "^3.7.4" + +[package.source] +type = "git" +url = "https://github.com/NixOS/nixops-hetzner" +reference = "master" +resolved_reference = "84f4eebb89b049c4f86aa779349397c3dedc0c43" + [[package]] name = "nixops-virtd" version = "1.0" @@ -604,7 +633,7 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "8a294b2745b271983bac54258b4f3a2ab3b2e5b218440329fa7eea482c63774f" +content-hash = "d55e8dc060befe16e5bca3d39c4b6815d038a845311a0faf061af66d64a7f901" [metadata.files] alabaster = [ @@ -718,6 +747,9 @@ docutils = [ {file = "docutils-0.16-py2.py3-none-any.whl", hash = "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af"}, {file = "docutils-0.16.tar.gz", hash = "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc"}, ] +hetzner = [ + {file = "hetzner-0.8.3.tar.gz", hash = "sha256:9a43dbbeb4a1f3efc86c5fe1c1d7039aaa635dfdb829506ec3aa34382d3a7114"}, +] idna = [ {file = "idna-3.3-py3-none-any.whl", hash = "sha256:84d9dd047ffa80596e0f246e2eab0b391788b0503584e8945f2368256d2735ff"}, {file = "idna-3.3.tar.gz", hash = "sha256:9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"}, @@ -778,6 +810,7 @@ nixops-aws = [] nixops-encrypted-links = [] nixops-gcp = [] nixops-hercules-ci = [] +nixops-hetzner = [] nixops-virtd = [] nixopsvbox = [] nixos-modules-contrib = [] diff --git a/pkgs/applications/networking/cluster/nixops/pyproject.toml b/pkgs/applications/networking/cluster/nixops/pyproject.toml index 3ee44623a6cd..d7fbfcfee13d 100644 --- a/pkgs/applications/networking/cluster/nixops/pyproject.toml +++ b/pkgs/applications/networking/cluster/nixops/pyproject.toml @@ -11,6 +11,7 @@ nixops-aws = {git = "https://github.com/NixOS/nixops-aws.git"} nixops-encrypted-links = {git = "https://github.com/nix-community/nixops-encrypted-links.git"} nixops-gcp = {git = "https://github.com/nix-community/nixops-gce.git"} nixops-hercules-ci = {git = "https://github.com/hercules-ci/nixops-hercules-ci.git"} +nixops-hetzner = {git = "https://github.com/NixOS/nixops-hetzner"} nixopsvbox = {git = "https://github.com/nix-community/nixops-vbox.git"} nixops-virtd = {git = "https://github.com/nix-community/nixops-libvirtd.git"}