Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version references in README.md #1642

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Forklift provides tools to create Foreman/Katello environments for development,
### Requirements

* Vagrant - 2.2+ - Both the VirtualBox and Libvirt providers are tested
* Ansible - 2.9+
* Ansible - 2.12+
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In #1641 it's suggested recent 2.9 should still work.

Copy link
Contributor Author

@wbclark wbclark Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I missed the GH issue and got here via https://community.theforeman.org/t/problems-using-forklift/32003

Even if later 2.9+ still works, perhaps it is not ideal to advertise or recommend this fact considering there are multiple EOL versions between 2.9+ and the current maintenance branch.

EDIT: I initially wrote some other thoughts here that were prompted by this, but to avoid getting bogged down, I've opened another pull request.

* [Vagrant Libvirt provider plugin](https://github.com/vagrant-libvirt/vagrant-libvirt) (if using Libvirt)
* Virtualization enabled in BIOS

Expand All @@ -40,7 +40,7 @@ This will walk through the simplest path of spinning up a production test enviro
git clone https://github.com/theforeman/forklift.git
cd forklift
ansible-galaxy collection install -r requirements.yml
vagrant up centos7-foreman-nightly
vagrant up centos8-foreman-nightly
```

The same can be quickly done for a development environment where GITHUB_NICK is your GitHub username:
Expand All @@ -50,7 +50,7 @@ git clone https://github.com/theforeman/forklift.git
cd forklift
cp vagrant/boxes.d/99-local.yaml.example vagrant/boxes.d/99-local.yaml
sed -i.bak "s/<REPLACE ME>/GITHUB_NICK/g" vagrant/boxes.d/99-local.yaml
vagrant up centos7-katello-devel
vagrant up centos8-katello-devel
```

In case using vagrant is not desired, ansible playbooks and roles from this repo can be used separately. This is useful if an existing host should be used for the installation, e.g. a beaker machine. In order to deploy the devel environment on host test.example.com, the following needs to be done:
Expand Down Expand Up @@ -103,11 +103,11 @@ hostmanager_ip_resolver_device: 'eth1'

### Adding Custom Boxes

Sometimes you want to spin up the same box type (e.g. centos7-katello-devel) from within the forklift directory. While this can be added to the Vagrantfile directly, updates to the forklift repository could wipe out your local changes. To help with this, you can define a custom box re-using the configuration within the Vagrantfile. To do so, create a `99-local.yaml` file in vagrant/boxes.d/. For example, to create a custom box on CentOS 7 with nightly and run the installers reset command:
Sometimes you want to spin up the same box type (e.g. centos8-katello-devel) from within the forklift directory. While this can be added to the Vagrantfile directly, updates to the forklift repository could wipe out your local changes. To help with this, you can define a custom box re-using the configuration within the Vagrantfile. To do so, create a `99-local.yaml` file in vagrant/boxes.d/. For example, to create a custom box on CentOS 7 with nightly and run the installers reset command:

```
my-nightly-koji:
box: centos7
box: centos8
ansible:
playbook: playbooks/katello.yml
variables:
Expand Down Expand Up @@ -154,7 +154,7 @@ Example with custom networking, static IP on custom libvirt network:

```
static:
box: centos7
box: centos8
hostname: mystatic.box.com
networks:
- type: 'private_network'
Expand All @@ -168,7 +168,7 @@ Example with custom libvirt management network:

```
static:
box: centos7
box: centos8
hostname: mystatic.box.com
libvirt_options:
management_network_address: 172.23.99.0/24
Expand All @@ -180,8 +180,8 @@ Do not forget to set openstack API credentials.
To use openstack provider as default look [here](https://www.vagrantup.com/docs/providers/default.html).

```
openstack-centos7:
image_name: 'Centos7'
openstack-centos8:
image_name: 'Centos8'
username: 'centos' #root by default
hostname: 'john-doe'
openstack_flavor: 'm1.medium'
Expand All @@ -195,7 +195,7 @@ Example with sshfs mounting folder from guest to host:

```
with-sshfs:
box: centos7
box: centos8
sshfs:
host_path: '/some/host/path'
guest_path: '/some/guest/path'
Expand All @@ -208,7 +208,7 @@ Additonal options may be specified with using `options`.

```
with-sshfs-options:
box: centos7
box: centos8
sshfs:
host_path: '/some/host/path'
guest_path: '/some/guest/path'
Expand All @@ -219,7 +219,7 @@ Example with an additional disk (libvirt volume) presented as /dev/vdb in the vm

```
static:
box: centos7
box: centos8
hostname: mystatic.box.com
add_disks:
- size: 100GiB
Expand All @@ -235,7 +235,7 @@ Then create your box:

```
with-nfs:
box: centos7
box: centos8
nfs:
host_path: '/some/host/path'
guest_path: '/some/guest/path'
Expand Down Expand Up @@ -276,7 +276,7 @@ Ansible roles may also be installed directly using the [`ansible-galaxy` command

```
ansible:
box: centos7-katello-nightly
box: centos8-katello-nightly
ansible:
playbook:
- 'user_playbooks/vim.yml'
Expand Down