1105 Commits

Author SHA1 Message Date
Zuul
810b5b3001 Merge "Get rid of venv_python_path" 2020-06-26 06:57:36 +00:00
Zuul
8a7667e562 Merge "Consolidate the default IP address handling" 2020-06-26 06:41:01 +00:00
Dmitry Tantsur
dbb3f244df Get rid of venv_python_path
Hopefully, this is just an old artefact that can be replaced with
using bifrost_venv_env.

Change-Id: I43d98f44a16b3c03d8bfea04bc91b6aec352fdfb
2020-06-22 15:41:22 +02:00
Dmitry Tantsur
f5906a9aff Derive enabled hardware interfaces from enabled_hardware_types
This greatly simplifies initial configuration. The simple CLI
now defaults to the community hardware types.

Change-Id: If4bee8ee3e3349742e360fd44f1f5f93b4913aed
2020-06-22 15:21:30 +02:00
Dmitry Tantsur
c0499c4e8c Consolidate the default IP address handling
Add a new parameter that can be overridden rather than hardcoding
the IPv4 address of network_interface. This paves a way to using
IPv6 addresses in the future (needs more work on the PXE side).

Change-Id: Ib677d8270665d9ff5c5f63cebc88fa3f29ff0b3a
2020-06-22 11:50:09 +02:00
Zuul
e4b32c2348 Merge "Make bifrost more metalsmith-friendly" 2020-06-22 09:35:55 +00:00
Zuul
dd175dc0da Merge "Add openstack collection" 2020-06-22 08:41:39 +00:00
Zuul
647a2285a1 Merge "Only install proliantutils if ilo is enabled; support idrac" 2020-06-19 22:59:02 +00:00
Zuul
20327ded0b Merge "Fix fast-track deployment after discovery/inspection" 2020-06-19 22:58:19 +00:00
Zuul
e94b43a1d9 Merge "Update IPA if update_repos is true (the default)" 2020-06-19 22:58:17 +00:00
Iury Gregory Melo Ferreira
fa1b8ea9a0 Add openstack collection
- add ansible-collection-requirements.yml so we
can specify the collections we need.
- Changed env-setup to install collections unsing
ansible-galaxy.

- Moved taks "Dynamic enrollment" to use the openstack.cloud
collection

Change-Id: I1cf21a505b923f333b6853944965593170cbe8cd
2020-06-19 10:36:53 +02:00
Zuul
ce78ba5917 Merge "Quick start Bifrost CLI" 2020-06-18 14:25:15 +00:00
Dmitry Tantsur
ec72e0c989 Make bifrost more metalsmith-friendly
1) Set default_resource_class (required for allocation API)
2) Create a checksum file for the cirros image

Change-Id: I35ae422823511131a1eeb5e072fa2820af264534
2020-06-16 17:05:27 +02:00
Dmitry Tantsur
835a4873c0 Fix fast-track deployment after discovery/inspection
The inspection ramdisk configuration does not include ipa-api-url,
so deployment/cleaning won't start without a reboot.

Change-Id: I90149a522d6879bd5c2271bf3265ca7897233e1b
2020-06-16 16:52:21 +02:00
Dmitry Tantsur
188e121d33 Update IPA if update_repos is true (the default)
It's risky to leave older IPA when updating ironic and is likely
to break upgrades. Update it by default and add a knob to disable.

Change-Id: Ieb639576a2562b4f5ae72b70fd9ab8fae928c30f
2020-06-16 14:39:52 +02:00
Dmitry Tantsur
ed26a1963b Only install proliantutils if ilo is enabled; support idrac
Change-Id: Idd850a58349bb7677d1fa2c72afed1578b26e938
2020-06-15 13:40:08 +02:00
Dmitry Tantsur
2c9ede32c9 Migrate pip_install.yml to a new role bifrost-pip-install
Allows de-duplicating pip_install.yml between ironic and keystone,
fixes numerous inconsistencies and centralizes venv and skip_install
handling.

Change-Id: Id6a1a4f3ebe2010ab14f43a306b084f4525d5862
2020-06-15 12:34:21 +02:00
Zuul
2dab2f5ad9 Merge "Convert with_items to loop" 2020-06-15 09:40:18 +00:00
Zuul
aad77f701e Merge "Get rid of the shade dependency" 2020-06-15 09:25:55 +00:00
Zuul
9e68118441 Merge "Remove the workaround for PEP517 issues" 2020-06-15 09:15:30 +00:00
Zuul
2339ce06e3 Merge "Update ansible versions in README of the roles" 2020-06-15 09:15:29 +00:00
Zuul
4d87a7dded Merge "Remove the ansible_pkg_mgr hack" 2020-06-15 09:15:28 +00:00
Dmitry Tantsur
99b93f4c49 Remove the ansible_pkg_mgr hack
Apparently, it was needed for yum->dnf transition, which has happened
for all supported distributions already.

Change-Id: I603ae0b274d8a24b08af634012104f00e59e75f9
2020-06-14 22:41:20 +02:00
Dmitry Tantsur
a78e64b3d1 Allow changing 'update' and 'force' when cloning repos
Change-Id: I0079deb31a4268fd75c323aff3c4778c7d170053
2020-06-14 22:30:44 +02:00
Dmitry Tantsur
a071eb9c1a Update ansible versions in README of the roles
Change-Id: Id29184df43ef83518596015cbf2b88e23dff001b
2020-06-14 12:29:26 +02:00
Dmitry Tantsur
9f787236a0 Remove the workaround for PEP517 issues
Should be fixed by the switch to venv, and was anyway not exactly
related to the Python version (seen on other Pythons as well),
but rather with a combination of Python, pip and setuptools.

Change-Id: Ifdd30ac5bc4790c17bcaf7ae6e50768a4a48cd48
2020-06-14 12:23:16 +02:00
Riccardo Pittau
7283e3dc54 Convert with_items to loop
Recommended way to work with loops is now using loop.

Change-Id: I4ce186e16e6ae5b3a6f29542887431f5499286b0
2020-06-11 17:31:28 +02:00
Zuul
4e83214d37 Merge "Stop supporting non-systemd systems" 2020-06-11 14:14:54 +00:00
Zuul
101e14e573 Merge "Add an option to use pre-built DIB images" 2020-06-11 09:12:09 +00:00
Zuul
f9c8de1a38 Merge "bifrost-create-vm-nodes: generate a normal nodes.json" 2020-06-11 09:12:08 +00:00
Zuul
1f06b6b909 Merge "Install packages all at once instead of looping over them" 2020-06-10 17:37:00 +00:00
Zuul
9a3f8bd4b2 Merge "Set default deploy/rescue kernel/ramdisk in ironic.conf" 2020-06-10 15:55:55 +00:00
Dmitry Tantsur
12c6f7120f Quick start Bifrost CLI
This change adds a local CLI ./bifrost-cli that allows to easily
run bifrost playbooks. It is targeting early adopters and thus
is opinionated and does not expose all possible options.

Only the very minimum is provided in this patch. More options
will be added later as we decide they are important.

Documentation will also be provided later as it's going to be
quite large. This feature should be considered technical preview
at this point until we give it more testing.

Change-Id: I2205e759431024124518716eccd07f79bda14f3a
2020-06-10 15:03:47 +02:00
Dmitry Tantsur
3fe85c5780 Add an option to use pre-built DIB images
Change-Id: I391c423a9ce4d1cb948e887cac3fe53987c3c39e
2020-06-10 15:03:22 +02:00
Dmitry Tantsur
59a0185133 Install packages all at once instead of looping over them
Change-Id: I6f8507473abbfc601bf5d3655c2fb9b460a37af4
2020-06-10 14:52:49 +02:00
Zuul
bc7ed1b4ea Merge "Remove empty files from the roles" 2020-06-08 09:33:19 +00:00
Dmitry Tantsur
d5a279a183 bifrost-create-vm-nodes: generate a normal nodes.json
Change-Id: Ie281b1e9b3ce630a6e15a54e38b282f54b1be925
2020-06-06 16:34:34 +02:00
Dmitry Tantsur
0477e45cd9 Set default deploy/rescue kernel/ramdisk in ironic.conf
Most likely people will use the kernel/ramdisk we provide, let's set
the defaults.

Change-Id: Ia7a2698344f8f1a14356dbfe9cd68ce667019606
2020-06-06 16:34:27 +02:00
Zuul
b33401b46c Merge "Restore installing DIB-specific dependencies" 2020-06-06 13:02:15 +00:00
Dmitry Tantsur
a077a509d4 Remove empty files from the roles
They are not required and just clutter the source tree.

Change-Id: I8a83870944081142d6d543030d272d2c92638d7d
2020-06-06 12:02:03 +02:00
Zuul
bd4a22f682 Merge "Moving to ansible 2.9" 2020-06-05 12:51:39 +00:00
Dmitry Tantsur
23f467bb18 Restore installing DIB-specific dependencies
Removed by mistake in 7e363d431890ead1582a09e1b61cadb575e35c82.

Change-Id: I523b5cdbf0fe1163469ac8d5f3ba2ecc6b5e6a44
2020-06-05 13:56:16 +02:00
Zuul
62380f3868 Merge "Install metalsmith by default" 2020-06-05 11:13:24 +00:00
Iury Gregory Melo Ferreira
9c9c014908 Moving to ansible 2.9
Some code changes were necessary since the Ansible-provided jinja tests
as filters was removed in ansible 2.9, see [1]

[1] https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#jinja-tests-used-as-filters

Co-authored-by: Kaio Oliveira <kaio.kassiano.oliveira@gmail.com>
Change-Id: I2f1c2ece0543eb60ac5ac5f9ad1465ffd2d66592
2020-06-05 12:34:22 +02:00
Dmitry Tantsur
8aa8086ab2 Switch to using virtual envs by default
They're already used in the CI, and chances are high that non-venv installation
is broken on at least some supported systems.

Change-Id: Ie3c93a0a1537658eaccf69da3f64d0fc43f292d1
2020-06-05 11:46:04 +02:00
Zuul
51f1bea437 Merge "Drop hard requirement on debootstrap and EPEL" 2020-06-05 09:42:54 +00:00
Zuul
ce65a9ae78 Merge "Support Ubuntu Focal (20.04)" 2020-06-05 09:32:38 +00:00
Zuul
11cd5b008c Merge "Install uWSGI from PyPI to repair CentOS 8 support" 2020-06-05 09:27:27 +00:00
Zuul
506608c575 Merge "Enable manual-management and the noop management interface" 2020-06-05 09:16:24 +00:00
Dmitry Tantsur
b86f478228 Set disable_dnsmasq_dns to True
We don't use its DNS capabilities, and leaving DNS enabled conflicts
with the local resolved on at least Bionic.

Story: #2007691
Task: #39834
Change-Id: I1ebd51a9414bb9686aa92376b34f38c029846c07
2020-06-04 16:51:12 +02:00