Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #123 from open-ness/openness_release_210305
Browse files Browse the repository at this point in the history
Openness release 210305
  • Loading branch information
cjnolan authored Jun 29, 2021
2 parents 30ff361 + c665467 commit 1878cfc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions cloud/ceek_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,18 @@ def create_inventory(options, inventory_path):
with open(os.path.join(inventory_path, "inventory.yml"), "w") as inv:
yaml.dump(cfgyaml, inv, sort_keys=False)

with open(os.path.join(INVENTORY_DIRECTORY, "group_vars", "all", "10-default.yml"), "r") as group_vars:
cfgvars = yaml.load(group_vars, Loader=yaml.FullLoader)

#Add token to group_vars
if options.git_token:
with open(os.path.join(INVENTORY_DIRECTORY, "group_vars", "all", "10-default.yml"), "r") as group_vars:
cfgvars = yaml.load(group_vars, Loader=yaml.FullLoader)

cfgvars["git_repo_token"] = options.git_token
#Note: Calico is not supported by Azure
cfgvars["kubernetes_cnis"] = ["kubeovn"]

with open(os.path.join(INVENTORY_DIRECTORY, "group_vars", "all", "10-default.yml"), "w") as group_vars:
yaml.dump(cfgvars, group_vars, sort_keys=False)
#Note: Calico is not supported by Azure
cfgvars["kubernetes_cnis"] = ["kubeovn"]

with open(os.path.join(INVENTORY_DIRECTORY, "group_vars", "all", "10-default.yml"), "w") as group_vars:
yaml.dump(cfgvars, group_vars, sort_keys=False)

def main(options):
"""Script entry function"""
Expand Down
2 changes: 1 addition & 1 deletion inventory/default/group_vars/all/10-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ os_remove_yum_plugins: true

### OpenNESS Git Repository
# Following variable specify branch/SHA/tag to be checked out for the source repository
git_repo_branch: openness-21.03.04
git_repo_branch: openness-21.03.05

# If True, the repository will be deleted and cloned again
# If False, repository will be left as it is and any changes won't be overwritten.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ os_remove_yum_plugins: true
docker_images: []

git_repo_url: https://{{ git_repo_token }}@github.com/open-ness/edgeservices.git
git_repo_branch: openness-21.03.04
git_repo_branch: openness-21.03.05
_git_repo_dest: "{{ openness_dir }}/edgeservices"

0 comments on commit 1878cfc

Please sign in to comment.