~fginther/charms/trusty/jenkaas/add-default-user

« back to all changes in this revision

Viewing changes to hooks/services.py

  • Committer: Francis Ginther
  • Date: 2015-06-19 02:59:34 UTC
  • Revision ID: francis.ginther@canonical.com-20150619025934-xsgeqrfe2e1k0lbg
Add support for default security and a default jenkins user.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    def provide_data(self):
17
17
        return {
18
18
            'master-address': hookenv.unit_get('private-address'),
19
 
            'port': 48484,
 
19
            'port': 8080,
20
20
        }
21
21
 
22
22
 
33
33
                actions.basenode,
34
34
                actions.install_jenkins_dep_pkges,
35
35
                actions.install_jenkins,
 
36
                actions.install_jenkins_config,
36
37
                actions.install_plugins,
 
38
                actions.configure_default_user,
37
39
                render_template(
38
40
                    source='upstart.conf',
39
41
                    target='/etc/init/jenkaas.conf'),
40
42
                actions.install_slaves,
41
43
                actions.log_start,
42
44
            ],
43
 
            'ports': [48484],
 
45
            'ports': [8080],
44
46
        },
45
47
    ])
46
48
    manager.manage()