forked from ansibleplaybookbundle/apb-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add k8s inventory plugin for usage as conductor container
Fixes ansibleplaybookbundle#16
- Loading branch information
1 parent
66dc56e
commit 2adf249
Showing
6 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ | |
%define build_timestamp %{nil} | ||
%endif | ||
|
||
Name: apb-base-scripts | ||
Version: 1.1.5 | ||
Release: 1%{build_timestamp}%{?dist} | ||
Summary: Scripts for the apb-base container image | ||
|
||
License: ASL 2.0 | ||
URL: https://github.com/fusor/apb-examples | ||
Source0: https://github.com/fusor/apb-examples/archive/%{name}-%{version}.tar.gz | ||
Name: apb-base-scripts | ||
Version: 1.1.5 | ||
Release: 1%{build_timestamp}%{?dist} | ||
Summary: Scripts for the apb-base container image | ||
|
||
License: ASL 2.0 | ||
URL: https://github.com/ansibleplaybookbundle/apb-base | ||
Source0: https://github.com/ansibleplaybookbundle/apb-base/archive/%{name}-%{version}.tar.gz | ||
BuildArch: noarch | ||
|
||
%description | ||
|
@@ -28,6 +28,9 @@ install -m 755 files/usr/bin/test-retrieval-init %{buildroot}%{_bindir} | |
install -m 755 files/usr/bin/test-retrieval %{buildroot}%{_bindir} | ||
install -m 755 files/usr/bin/entrypoint.sh %{buildroot}%{_bindir} | ||
install -m 755 files/opt/apb/.kube/config %{buildroot}/opt/apb/.kube/config | ||
install -m 755 files/etc/ansible/ansible.cfg %{buildroot}/etc/ansible/ansible.cfg | ||
install -m 755 files/etc/ansible/hosts %{buildroot}/etc/ansible/hosts | ||
install -m 755 files/etc/ansible/k8s.yml %{buildroot}/etc/ansible/k8s.yml | ||
|
||
%files | ||
%doc | ||
|
@@ -36,6 +39,9 @@ install -m 755 files/opt/apb/.kube/config %{buildroot}/opt/apb/.kube/config | |
%{_bindir}/entrypoint.sh | ||
%dir %{_sysconfdir}/apb-secrets | ||
/opt/apb/.kube/config | ||
%{_sysconfdir}/ansible/ansible.cfg | ||
%{_sysconfdir}/ansible/hosts | ||
%{_sysconfdir}/ansible/k8s.yml | ||
|
||
%changelog | ||
* Fri Feb 02 2018 David Zager <[email protected]> 1.1.5-1 | ||
|
@@ -81,4 +87,3 @@ install -m 755 files/opt/apb/.kube/config %{buildroot}/opt/apb/.kube/config | |
|
||
* Fri Aug 18 2017 Jason Montleon <[email protected]> 1.0.1-1 | ||
- new package built with tito | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
[defaults] | ||
roles_path = /etc/ansible/roles:/opt/ansible/roles | ||
inventory = /etc/ansible/hosts:/etc/ansible/k8s.yml | ||
library = /usr/share/ansible/openshift | ||
|
||
[inventory] | ||
enable_plugins = k8s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
plugin: k8s | ||
connections: | ||
namespaces: | ||
- {{ namespace }} |