diff --git a/08-advanced-charms.md b/08-advanced-charms.md index 004de211aa6b8e0d1d7727fca0ab3aefe8baefee..8f4f828fdbb30957966ad031b73054a7bb635b33 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