Skip to content
Snippets Groups Projects
Commit 12e680c5 authored by Matteo's avatar Matteo
Browse files

Add open_port to config_php

parent 57c93c8d
Branches master
No related tags found
No related merge requests found
......@@ -286,7 +286,7 @@ Configure the Wordpress application according to https://help.ubuntu.com/lts/ser
.. code-block:: python
@when_all('wordpress.installed', 'wordpress.database_is_ready')
@when_all('wordpress.ready', 'wordpress.database_is_ready')
def config_php():
status_set('maintenance', 'configuring wordpress')
mysql = relation_get()
......@@ -297,6 +297,7 @@ Configure the Wordpress application according to https://help.ubuntu.com/lts/ser
context={
'my_database': mysql
})
open_port(80, protocol='TCP')
status_set('active', 'Ready')
......@@ -310,7 +311,7 @@ Configure the Wordpress application according to https://help.ubuntu.com/lts/ser
.. code-block:: python
from charms.reactive import when, when_not, set_flag, hook, when_all
from charmhelpers.core.hookenv import status_set, relation_get, log
from charmhelpers.core.hookenv import status_set, relation_get, log, open_port
from charmhelpers.core.host import write_file, service_restart
from charmhelpers.core.templating import render
import charms.apt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment