Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:nuagenetworks/nuage-metro into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
brcastel committed Nov 19, 2018
2 parents 0dc724e + d4b709c commit 53c2a97
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 17 deletions.
10 changes: 10 additions & 0 deletions Documentation/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Metro Automation Engine Release Notes

## Release 3.0.1

### Resolved Issues
* Add double jinja2 substitution to build_vars.yml conversion script
* Support unicode characters when converting from build_vars.yml
* Require VSC TIM file only for upgrade, not install
* Add license
* Remove verbosity from documentation examples
* Remove 'install_everything' error message when running `./metroae help`

## Release 3.0.0

### New Features and Enhancements
Expand Down
13 changes: 13 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2016 Nuage Networks

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Nuage Networks Metro Automation Engine (MetroÆ)
(4 minute read)

Version: 3.0.0
Version: 3.0.1

MetroÆ is an automation engine that deploys and upgrades Nuage Networks components. You specify the individual details of your target platform, then let MetroÆ install, upgrade, destroy, or health-check the environment for you.

Expand Down Expand Up @@ -134,4 +134,4 @@ Report bugs you find and suggest new features and enhancements via the [GitHub I
You may also [contribute](CONTRIBUTING.md) to MetroÆ by submitting your own code to the project.

## License
Apache License 2.0
[LICENSE.md](LICENSE.md)
23 changes: 19 additions & 4 deletions convert_build_vars_to_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,26 @@ def read_build_vars(build_vars_file):

substitutions = yaml.safe_load(build_var_contents)

build_vars_template = jinja2.Template(build_var_contents,
autoescape=False,
undefined=jinja2.StrictUndefined)
try:
build_vars_template = jinja2.Template(build_var_contents,
autoescape=False,
undefined=jinja2.StrictUndefined)

resolved_yaml = build_vars_template.render(substitutions)
resolved_yaml = build_vars_template.render(substitutions)

substitutions = yaml.safe_load(resolved_yaml)

# Do template resolution a second time to resolve nested substitution
build_vars_template = jinja2.Template(resolved_yaml,
autoescape=False,
undefined=jinja2.StrictUndefined)

resolved_yaml = build_vars_template.render(substitutions)
except jinja2.exceptions.UndefinedError as e:
print str(e)
print ("The above variable is missing from build_vars, please define "
"it in the build_vars file.")
exit(1)

var_dict = yaml.safe_load(resolved_yaml)

Expand Down
2 changes: 1 addition & 1 deletion metroae
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
# Wrapper around ansible-playbook for the installation of Nuage components
#

METROAE_VERSION="v3.0.0"
METROAE_VERSION="v3.0.1"

CURRENT_DIR=`pwd`
PLAYBOOK_DIR=$CURRENT_DIR/src/playbooks
Expand Down
6 changes: 0 additions & 6 deletions src/roles/common/tasks/check-predeploy-prereq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@

when: component_type | default("NONE") != 'vrs'

- name: Check that TIM file was found
assert:
that: "vsc_tim_path is defined and vsc_tim_file_name is defined"
msg: "Missing VSC TIM image file for {{ hostname }} under the unzipped file directory, please unzip it and issue reset_build"
when: component_type | default("NONE") == 'vsc'

- block:

- name: Check that VRS package files were found
Expand Down
6 changes: 6 additions & 0 deletions src/roles/common/tasks/check-upgrade-prereq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@
msg: "vstat_upgrade_scripts_file is missing"

when: component_type | default("NONE") == 'vstat'

- name: Check that TIM file was found for VSC
assert:
that: "vsc_tim_path is defined and vsc_tim_file_name is defined"
msg: "Missing VSC TIM image file for {{ hostname }} under the unzipped file directory, please unzip it and issue reset_build"
when: component_type | default("NONE") == 'vsc'
8 changes: 4 additions & 4 deletions src/roles/vnsutil-postdeploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
state: directory

- name: Create and transfer certs
include_role:
include_role:
name: common
tasks_from: vsd-generate-transfer-certificates
vars:
vars:
certificate_password: "{{ vnsutil_default_password }}"
certificate_username: proxy
commonName: proxy
certificate_type: server
scp_user: "{{ vnsutil_default_username }}"
scp_location: /opt/proxy/config/keys
additional_parameters: -d {{ inventory_hostname }}
additional_parameters: -d {{ data_fqdn | default(inventory_hostname) }}

- name: Install supervisord and haproxy
command: "{{ install_cmd }}"

Expand Down

0 comments on commit 53c2a97

Please sign in to comment.