Skip to content

Commit

Permalink
Merge pull request #120 from ccamacho/master
Browse files Browse the repository at this point in the history
chore: release and update docs.
  • Loading branch information
ccamacho authored Dec 8, 2020
2 parents b53e741 + 0fa5897 commit 74b0a16
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ LABEL quay.expires-after=30w

COPY . .

# Over rides SSH Hosts Checking
# Overrides SSH Hosts Checking
RUN set -x && \
\
echo "==> Installing dependencier..." && \
echo "==> Installing dependencies..." && \
apt-get update -y && apt-get install -y \
openssh-client && \
\
Expand All @@ -20,14 +20,16 @@ RUN set -x && \
\
echo "==> Adding Python runtime and deps..." && \
pip3 install \
--upgrade pip \
--upgrade \
pip \
shyaml \
ansible \
netaddr && \
\
echo "==> Installing KubeInit..." && \
cd ./kubeinit && \
rm -rf ~/.ansible/collections/ansible_collections/kubeinit/kubeinit && \
ansible-galaxy collection install --force -r requirements.yml && \
ansible-galaxy collection build -v --force --output-path releases/ && \
ansible-galaxy collection install --force releases/kubeinit-kubeinit-`cat galaxy.yml | shyaml get-value version`.tar.gz

Expand Down
22 changes: 22 additions & 0 deletions docs/src/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@ Requirements
* Have root passwordless access with certificates.
* Adjust the inventory file to suit your needs i.e. `the worker nodes <https://github.com/Kubeinit/kubeinit/blob/master/kubeinit/hosts/okd/inventory#L66>`_ you will need in your cluster.

Installing dependencies
~~~~~~~~~~~~~~~~~~~~~~~

KubeInit calls additional Ansible collections that needs to be installed.
If there are dependencies issues when executing the collection, install
them by executing:

.. note:: From the project's root directory.

.. code-block:: console
ansible-galaxy collection install --force -r kubeinit/requirements.yml
An example of a possible dependency issue is the following:

.. code-block:: console
TASK [Configure the cluster service node] ***************************************************************************************************************
ERROR! couldn't resolve module/action 'community.general.docker_login'. This often indicates a misspelling, missing collection, or incorrect module path.
By default the KubeInit's container image installs these requirements, this should only affect
those executing directly the collection from the source code.

Directly executing the deployment playbook
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
7 changes: 5 additions & 2 deletions kubeinit/galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: kubeinit
name: kubeinit
version: 0.6.2
version: 0.6.3
readme: README.md
authors:
- Carlos Camacho <[email protected]>
Expand All @@ -15,11 +15,14 @@ tags:
- okd
- rke
- cdk
- eks
- kubernetes
- openshift
- origin
- canonical
- rancher
- aws
dependencies: {}
repository: 'https://github.com/kubeinit/kubeinit'
homepage: 'https://github.com/kubeinit/kubeinit'
homepage: 'https://www.kubeinit.com'
issues: 'https://github.com/kubeinit/kubeinit/issues'

0 comments on commit 74b0a16

Please sign in to comment.