From c48e83fbfd54474ba030aed0a05d24523d0eb457 Mon Sep 17 00:00:00 2001
From: Matteo <matteo.difazio@garr.it>
Date: Tue, 13 Aug 2019 09:37:51 +0200
Subject: [PATCH] format text

---
 create-and-deploy-charms.rst | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/create-and-deploy-charms.rst b/create-and-deploy-charms.rst
index 3b6879d..6749a27 100644
--- a/create-and-deploy-charms.rst
+++ b/create-and-deploy-charms.rst
@@ -142,7 +142,7 @@ Configure Wordpress Charm
 
 4. Be sure to be logged into a **juju controller**.
    
-
+   
    
 5. Position yourself in the wordpress directory and from the command line execute these commands:
 
@@ -152,23 +152,23 @@ Configure Wordpress Charm
         juju deploy /tmp/charm-builds/wordpress
         watch -c juju status --color
     
-  As you can see, juju will do the following:
+    As you can see, juju will do the following:
 
         1. Interact with your cloud/openstack/localhost to request the provisioning of a 
            machine on which deploy the charm
         
         2. Deploy the wordpress charm previously created
 
-  The wordpress application and unit will halt on the status: **'blocked'** because no other python function
-  was specified to be executed in the *wordpress.py* file after the **install_wordpress** function.
+    The wordpress application and unit will halt on the status: **'blocked'** because no other python function
+    was specified to be executed in the *wordpress.py* file after the **install_wordpress** function.
 
-  Also, the application status **'blocked'** is exactly what we expect to see since we wrote the following instruction in *wordpress.py*:
-
-    .. code-block:: python
+    Also, the application status **'blocked'** is exactly what we expect to see since we wrote the following instruction in *wordpress.py*:
 
-            status_set('blocked', "wordpress installed, waiting for database")
+        .. code-block:: python
 
-  At this point, a charm that will install wordpress via apt and do nothing else it has been created and deployed.
+             status_set('blocked', "wordpress installed, waiting for database")
+    
+    At this point, a charm that will install wordpress via apt and do nothing else it has been created and deployed.
 
 
 
@@ -253,13 +253,13 @@ Configure Wordpress application according to https://help.ubuntu.com/lts/serverg
         status_set('blocked', "wordpress installed, waiting for database")
         set_flag('wordpress.installed')
 
-  The modified function does the following:
+    The modified function does the following:
 
-    1. writes into etc/apache2/sites-available/wordpress.conf 
+        1. writes into etc/apache2/sites-available/wordpress.conf 
 
-    2. executes the *sudo a2ensite wordpress* command
+        2. executes the *sudo a2ensite wordpress* command
 
-    3. restarts apache service
+        3. restarts apache service
 
 
 2. Create a directory named *templates* into the wordpress directory
@@ -294,10 +294,10 @@ Configure Wordpress application according to https://help.ubuntu.com/lts/serverg
             status_set('active', 'Ready')
 
 
-  This function retrieves informations from the mysql unit regarding the account and database that was created when
-  the *juju add-relation mysql wordpress* command was executed.
+    This function retrieves informations from the mysql unit regarding the account and database that was created when
+    the *juju add-relation mysql wordpress* command was executed.
 
-  Then, writes these informations into the */etc/wordpress/config-default.php* file.
+    Then, writes these informations into the */etc/wordpress/config-default.php* file.
 
 5. Build and deploy the wordpress charm with the last modifications:
 
@@ -307,9 +307,9 @@ Configure Wordpress application according to https://help.ubuntu.com/lts/serverg
         juju upgrade-charm wordpress --path /tmp/charm-builds/wordpress
         watch -c juju status --color
 
-  The wordpress application and unit status will become **Ready**.
+    The wordpress application and unit status will become **Ready**.
 
-  The wordpress charm is correctly configured and ready to be used.
+    The wordpress charm is correctly configured and ready to be used.
 
 
 Expose Wordpress
-- 
GitLab