mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Update ansible package
Needs to be moved out of automatic update-all since it requires goDeps.
This commit is contained in:
parent
34919c38e3
commit
f1b81ff2cd
@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
||||
buildGoPackage rec {
|
||||
name = "terraform-provider-ansible-${version}";
|
||||
version = "1.0.3";
|
||||
|
||||
goPackagePath = "github.com/nbering/terraform-provider-ansible";
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nbering";
|
||||
repo = "terraform-provider-ansible";
|
||||
rev = "v${version}";
|
||||
sha256 = "0dqi9ym0xvnz3h73cmd1vf6k2qwfhxvj1mcakkpmsd4cpxq4l6pr";
|
||||
};
|
||||
|
||||
# Terraform allow checking the provider versions, but this breaks
|
||||
# if the versions are not provided via file paths.
|
||||
postBuild = "mv go/bin/terraform-provider-ansible{,_v${version}}";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Terraform provider serving as an interop layer for an Ansible dynamic inventory script.";
|
||||
homepage = "https://github.com/nbering/terraform-provider-ansible";
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ uskudnik ];
|
||||
};
|
||||
}
|
11
pkgs/applications/networking/cluster/terraform-providers/ansible/deps.nix
generated
Normal file
11
pkgs/applications/networking/cluster/terraform-providers/ansible/deps.nix
generated
Normal file
@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
goPackagePath = "github.com/hashicorp/terraform";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/hashicorp/terraform";
|
||||
rev = "v0.12.5";
|
||||
sha256 = "0p064rhaanwx4szs8hv6mdqad8d2bgfd94h2la11j58xbsxc7hap";
|
||||
};
|
||||
}
|
||||
]
|
@ -714,11 +714,4 @@
|
||||
version = "0.2.0";
|
||||
sha256 = "0ic5b9djhnb1bs2bz3zdprgy3r55dng09xgc4d9l9fyp85g2amaz";
|
||||
};
|
||||
ansible =
|
||||
{
|
||||
owner = "nbering";
|
||||
repo = "terraform-provider-ansible";
|
||||
version = "0.0.4";
|
||||
sha256 = "125a8vbpnahaxxrxj3mp0kj6ajssxnfb6l0spgnf118wg3bvlmw5";
|
||||
};
|
||||
}
|
||||
|
@ -28,4 +28,5 @@ in
|
||||
gandi = callPackage ./gandi {};
|
||||
ibm = callPackage ./ibm {};
|
||||
libvirt = callPackage ./libvirt {};
|
||||
ansible = callPackage ./ansible {};
|
||||
} // lib.mapAttrs (n: v: toDrv v) list
|
||||
|
@ -20,6 +20,3 @@ tweag/terraform-provider-secret
|
||||
|
||||
# include terraform-provider-segment
|
||||
ajbosco/terraform-provider-segment
|
||||
|
||||
# include terraform-provider-ansible
|
||||
nbering/terraform-provider-ansible
|
||||
|
Loading…
Reference in New Issue
Block a user