-
Notifications
You must be signed in to change notification settings - Fork 12
re-introduce basic ci/cd #355
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
[submodule "src/kolla-ansible"] | ||
path = src/kolla-ansible | ||
url = https://github.com/chameleoncloud/kolla-ansible | ||
branch = chameleoncloud/2023.1 | ||
[submodule "kolla/node_custom_config/themes/chameleon_theme"] | ||
path = kolla/node_custom_config/horizon/themes/chameleoncloud | ||
url = https://github.com/ChameleonCloud/horizon-theme |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ done | |
# | ||
|
||
install_deps() { | ||
set -x | ||
# install kolla-ansible, perform updates if necessary. | ||
|
||
# create virtualenv | ||
|
@@ -81,10 +82,7 @@ install_deps() { | |
|
||
git submodule update --init | ||
|
||
pip install \ | ||
-r requirements.txt \ | ||
--config-settings editable_mode=strict \ | ||
-e src/kolla-ansible | ||
pip install -r requirements.txt | ||
|
||
# Update/install yq, adding it to the venv bin path | ||
YQ_VERSION=4.9.6 | ||
|
@@ -96,7 +94,8 @@ install_deps() { | |
|
||
# install kolla-ansible galaxy deps. We use a subshell to drop back out of the venv afterwards | ||
(source "${VIRTUALENV}/bin/activate" && kolla-ansible install-deps) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
|
||
set +x | ||
} | ||
|
||
init() { | ||
|
@@ -274,25 +273,12 @@ if [[ -f "$CC_ANSIBLE_ENV" ]]; then | |
set -a; source "$(realpath "$CC_ANSIBLE_ENV")"; set +a | ||
fi | ||
|
||
find_kolla_ansible_base_dir () { | ||
kolla_direct_url="$(find ${VIRTUAL_ENV}/lib/ -wholename '*kolla_ansible*.dist-info/direct_url.json' -print -quit)" | ||
if test -n "${kolla_direct_url}"; then | ||
# Editable install in local path | ||
direct_url="$(yq eval '.url' ${kolla_direct_url})" | ||
BASEDIR="${direct_url#file:\/\/}" | ||
else | ||
BASEDIR="${VIRTUAL_ENV}/share/kolla-ansible" | ||
fi | ||
echo "${BASEDIR}/ansible" | ||
} | ||
|
||
# Handle subcommands | ||
if [[ -n "${command:-}" ]]; then | ||
$command "$@" | ||
exit $? | ||
fi | ||
|
||
ansible_path="$(find_kolla_ansible_base_dir)" | ||
if [[ -n "${CC_ANSIBLE_PLAYBOOK:-}" ]]; then | ||
echo "**********************************************************************" | ||
echo "* Playbook override detected! This playbook will be executed within *" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# ansible version for kolla-ansible 2023.1 release | ||
ansible >=6,<8 | ||
ansible >=6,<8 | ||
git+https://github.com/ChameleonCloud/kolla-ansible.git@chameleoncloud/2023.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
|
||
### Overrides for edge configuration | ||
|
||
enable_heat: false | ||
enable_glance: false | ||
enable_nova: false | ||
enable_ironic: false | ||
|
||
enable_k3s: yes | ||
enable_zun: yes | ||
|
||
|
||
# temp for debugging | ||
enable_blazar: false | ||
enable_doni: false | ||
enable_tunelo: false | ||
|
||
enable_central_logging: false | ||
enable_prometheus: false | ||
|
||
|
||
network_interface: veth-inta | ||
kolla_internal_vip_address: 10.10.10.254 | ||
kolla_internal_fqdn: "{{ kolla_internal_vip_address }}" | ||
|
||
|
||
kolla_external_vip_interface: veth-publica | ||
kolla_external_vip_address: 192.168.200.254 | ||
kolla_external_fqdn: "{{ kolla_external_vip_address }}" | ||
|
||
k3s_tag: c777a4a |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# kolla public/external iface | ||
sudo ip link add veth_publica type veth peer veth_publicb | ||
sudo ip addr add 192.168.200.10/24 dev veth_publica | ||
sudo ip link set veth_publica up | ||
sudo ip link set veth_publicb up | ||
|
||
# kolla internal iface | ||
sudo ip link add veth_inta type veth peer veth_intb | ||
sudo ip addr add 10.10.10.10/24 dev veth_inta | ||
sudo ip link set veth_inta up | ||
sudo ip link set veth_intb up | ||
|
||
# neutron external iface | ||
sudo ip link add veth_neutrona type veth peer veth_neutronb | ||
sudo ip link set veth_neutrona up | ||
sudo ip link set veth_neutronb up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [shellcheck] reported by reviewdog 🐶
Double quote array expansions to avoid re-splitting elements. SC2068
chi-in-a-box/cc-ansible
Line 142 in e958418