Académique Documents
Professionnel Documents
Culture Documents
auto ens4
iface ens4 inet static
address 192.168.200.25
netmask 255.255.255.0
auto ens9
iface ens9 inet static
address 172.18.1.25
netmask 255.255.255.0
auto ens9
iface ens9 inet dhcp
kspace
Summary:
Deploy a new application or bundle.
Options:
-B, --no-browser-login (= false)
Do not use web browser for authentication
--bind (= "")
Configure application endpoint bindings to spaces
--bundle-config (= "")
Config override values for a bundle
--channel (= "")
Channel to use when getting the charm or bundle from the charm store
--config (= )
Path to yaml-formatted application config
--constraints (= "")
Set application constraints
--force (= false)
Allow a charm to be deployed to a machine running an unsupported series
--increase-budget (= 0)
increase model budget allocation by this amount
-m, --model (= "")
Model to operate in. Accepts [<controller name>:]<model name>
-n, --num-units (= 1)
Number of application units to deploy for principal charms
--plan (= "")
plan to deploy charm under
--resource (= )
Resource to be uploaded to the controller
--series (= "")
The series on which to deploy
--storage (= )
Charm storage constraints
--to (= "")
The machine and/or container to deploy the unit in (bypasses constraints)
Details:
<charm or bundle> can be a charm/bundle URL, or an unambiguously condensed
form of it; assuming a current series of "trusty", the following forms will be
accepted:
For cs:trusty/mysql
mysql
trusty/mysql
For cs:~user/trusty/mysql
~user/mysql
For cs:bundle/mediawiki-single
mediawiki-single
bundle/mediawiki-single
The current series for charms is determined first by the 'default-series' model
setting, followed by the preferred series for the charm in the charm store.
Charms may also be deployed from a user specified path. In this case, the path
to the charm is specified along with an optional series.
If '--series' is not specified, the charm's default series is used. The default
series for a charm is the first one specified in the charm metadata. If the
specified series is not supported by the charm, this results in an error,
unless '--force' is used.
Where 'bar' and 'baz' are resources named in the metadata for the 'foo' charm.
In more complex scenarios, Juju's network spaces are used to partition the
cloud networking layer into sets of subnets. Instances hosting units inside the
same space can communicate with each other without any firewalls. Traffic
crossing space boundaries could be subject to firewall and access restrictions.
Using spaces as deployment targets, rather than their individual subnets,
allows Juju to perform automatic distribution of units across availability zones
to support high availability for applications. Spaces help isolate applications
and their units, both for security purposes and to manage both traffic
segregation and congestion.
Examples:
juju deploy mysql (deploy to a new machine)
juju deploy mysql --to 23 (deploy to preexisting machine 23)
juju deploy mysql --to lxd (deploy to a new LXD container on a new
machine)
juju deploy mysql --to lxd:25 (deploy to a new LXD container on machine 25)
juju deploy mysql --to 24/lxd/3 (deploy to LXD container 3 on machine 24)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
dns-nameservers 192.99.122.200
dns-search maas
pre-up ip address add 10.1.0.9/24 dev eth0 || true
up ip route replace 10.1.0.0/24 dev eth0 || true
down ip route del 10.1.0.0/24 dev eth0 || true
post-down address del 10.1.0.9/24 dev eth0 || true
up ip route replace default via 10.1.0.1 || true
down ip route del default via 10.1.0.1 || true
https://github.com/juju/cheatsheet/blob/master/juju_2.x.md