From 93edf7568c72ff3064d3700bc21db3bd7e48a46f Mon Sep 17 00:00:00 2001 From: nogalesb Date: Thu, 26 Mar 2020 09:56:34 +0100 Subject: [PATCH] Update 08-advanced-charms.md to include the default configuration of the Juju models deployed by OSM in each NS instantiation. --- 08-advanced-charms.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/08-advanced-charms.md b/08-advanced-charms.md index 004de21..8f4f828 100644 --- a/08-advanced-charms.md +++ b/08-advanced-charms.md @@ -15,7 +15,7 @@ When a charm is deployed, there are several time-consuming steps that are execut Caveat: This is intended only for use in a development environment, to provide faster iteration between deploying VNFs and charms. -The script below can be taken as-is We start with the base cloud image that LXD downloads from its [image server](https://us.images.linuxcontainers.org/), update it's installed software, and install the packages required by the reactive charm framework. +The script below can be taken as-is. We start with the base cloud image that LXD downloads from its [image server](https://us.images.linuxcontainers.org/), update it's installed software, and install the packages required by the reactive charm framework. 1. Launch a container using the latest cloud image 2. Run *apt-get update* and *apt-get upgrade* @@ -90,7 +90,11 @@ Prevent Juju from running *apt-get update && apt-get upgrade* when starting a ma juju model-config enable-os-refresh-update=false enable-os-upgrade=false ``` -Please note that any 'juju model-config' command needs to run right aftert you have switched to the juju model of your Network Service, in order to work. +Please note that any 'juju model-config' command needs to run right after you have switched to the juju model of your Network Service, in order to work. In the case of looking for setting these changes by default in the models subsequently executed, this can be done by running the following command: + +``` +juju model-defaults localhost enable-os-refresh-update=false enable-os-upgrade=false +``` ### Using a custom Apt repository @@ -100,7 +104,11 @@ You can configure Juju to use a local or regional Apt repository: juju model-config apt-mirror=http://archive.ubuntu.com/ubuntu/ ``` -Please note that any 'juju model-config' command needs to run right aftert you have switched to the juju model of your Network Service, in order to work. +Please note that any 'juju model-config' command needs to run right aftert you have switched to the juju model of your Network Service, in order to work. As in the previous section, this configuration can be set by default for the following models to be executed as follows: + +``` +juju model-defaults localhost apt-mirror=http://archive.ubuntu.com/ubuntu/ +``` ### Using a proxy server -- GitLab