Skip to content

Commit

Permalink
Add a bare minimum localhost hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
sdodson committed Jan 30, 2018
1 parent f894bcf commit 70262d0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
21 changes: 21 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,27 @@ If you are new to Git, these links might help:

---

## Simple all-in-one localhost installation
```
git clone https://github.com/openshift/openshift-ansible
cd openshift-ansible
sudo ansible-playbook -i inventory/hosts.localhost playbooks/prerequisites.yml
sudo ansible-playbook -i inventory/hosts.localhost playbooks/deploy_cluster.yml
```

## Development process
Most changes can be applied by re-running the config playbook. However, while
the config playbook will run faster the second time through it's still going to
take a very long time. As such, you may wish to run a smaller subsection of the
installation playbooks. You can for instance run the node, master, or hosted
playbooks in playbooks/openshift-node/config.yml,
playbooks/openshift-master/config.yml, playbooks/openshift-hosted/config.yml
respectively.

We're actively working to refactor the playbooks into smaller discrete
components and we'll be documenting that structure shortly, for now those are
the most sensible logical units of work.

## Running tests and other verification tasks

We use [`tox`](http://readthedocs.org/docs/tox/) to manage virtualenvs where
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ Fedora:
dnf install -y ansible pyOpenSSL python-cryptography python-lxml
```

## OpenShift Installation Documentation:
## Simple all-in-one localhost Installation
This assumes that you've installed the base dependencies and you're running on
Fedora or RHEL
```
git clone https://github.com/openshift/openshift-ansible
cd openshift-ansible
sudo ansible-playbook -i inventory/hosts.localhost playbooks/prerequisites.yml
sudo ansible-playbook -i inventory/hosts.localhost playbooks/deploy_cluster.yml
```

## Complete Production Installation Documentation:

- [OpenShift Enterprise](https://docs.openshift.com/enterprise/latest/install_config/install/advanced_install.html)
- [OpenShift Origin](https://docs.openshift.org/latest/install_config/install/advanced_install.html)
Expand Down
26 changes: 26 additions & 0 deletions inventory/hosts.localhost
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#bare minimum hostfile

[OSEv3:children]
masters
nodes
etcd

[OSEv3:vars]
# if your target hosts are Fedora uncomment this
#ansible_python_interpreter=/usr/bin/python3
openshift_deployment_type=origin
openshift_release=3.7
osm_cluster_network_cidr=10.128.0.0/14
openshift_portal_net=172.30.0.0/16
osm_host_subnet_length=9
# localhost likely doesn't meet the minimum requirements
openshift_disable_check=disk_availability,memory_availability

[masters]
localhost ansible_connection=local

[etcd]
localhost ansible_connection=local

[nodes]
localhost ansible_connection=local openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}"

0 comments on commit 70262d0

Please sign in to comment.