@@ -17,12 +17,10 @@ To deploy a new application, connect a model and then call its
1717 await model.connect_current()
1818
1919 mysql_app = await model.deploy(
20- # If a revision number is not included in the charm url,
21- # the latest revision from the Charm Store will be used.
22- ' cs:mysql-55' ,
23- application_name = ' mysql' ,
24- series = ' trusty' ,
25- channel = ' stable' ,
20+ ' mysql' ,
21+ application_name = ' my-mysql' ,
22+ series = ' jammy' ,
23+ channel = ' 8.0/stable' ,
2624 config = {
2725 ' tuning-level' : ' safest' ,
2826 },
@@ -46,9 +44,9 @@ To deploy a local charm, pass the charm directory path to
4644
4745 # Deploy a local charm using a path to the charm directory
4846 await model.deploy(
49- ' /home/tvansteenburgh/src /charms/ubuntu' ,
47+ ' . /charms/ubuntu' ,
5048 application_name = ' ubuntu' ,
51- series = ' trusty ' ,
49+ series = ' jammy ' ,
5250 )
5351
5452
@@ -63,7 +61,6 @@ added units (:class:`~juju.unit.Unit` objects) is returned.
6361 ubuntu_app = await model.deploy(
6462 ' ubuntu' ,
6563 application_name = ' ubuntu' ,
66- series = ' trusty' ,
6764 channel = ' stable' ,
6865 )
6966
@@ -107,18 +104,18 @@ The :meth:`juju.application.Application.relate` method returns a
107104
108105 # Deploy mysql-master application
109106 mysql_master = await model.deploy(
110- ' cs: mysql-55 ' ,
107+ ' mysql' ,
111108 application_name = ' mysql-master' ,
112- series = ' trusty ' ,
113- channel = ' stable' ,
109+ series = ' jammy ' ,
110+ channel = ' 8.0/ stable' ,
114111 )
115112
116113 # Deploy mysql-slave application
117114 mysql_slave = await model.deploy(
118- ' cs: mysql-55 ' ,
115+ ' mysql' ,
119116 application_name = ' mysql-slave' ,
120- series = ' trusty ' ,
121- channel = ' stable' ,
117+ series = ' jammy ' ,
118+ channel = ' 8.0/ stable' ,
122119 )
123120
124121 # Add the master-slave relation
0 commit comments