Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 51 lines (39 sloc) 1.173 kb
13893d0 implemented provisioning for project:
Nick Badoux authored
1 import os
2
f53cbe5 @markotibold Packaged the project and renamed to _deploytool_.
markotibold authored
3 import deploytool.tasks as tasks
13893d0 implemented provisioning for project:
Nick Badoux authored
4
5
6 project_items = {
7 'admin_email': 'info@example.com',
8 'project_name': 'example',
9 'hosts': ['192.168.1.666', ],
10 'projects_root': os.path.join('/', 'path', 'to', 'projects'),
11 'provisioning_user': 'sudoer',
12 }.items()
13
14 live_items = {
15 'website_name': 'www.example.com',
16 'project_name_prefix': 'l-',
17 'environment': 'live',
18 }.items()
19
20 local_items = {
21 'website_name': 'www.example.com.dev',
22 'project_name_prefix': 'd-',
23 'environment': 'local',
24 'hosts': ['127.0.0.1', ],
25 }.items()
26
27 staging_items = {
28 'website_name': 'subdomain.example.com',
29 'project_name_prefix': 's-',
30 'environment': 'staging',
31 }.items()
32
33
34 # hosts
35 staging = tasks.remote.RemoteHost(settings=dict(project_items + staging_items))
36 live = tasks.remote.RemoteHost(settings=dict(project_items + live_items))
37
38 # deployment
39 deploy = tasks.remote.Deployment()
40 rollback = tasks.remote.Rollback()
41 status = tasks.remote.Status()
42 database = tasks.remote.Database()
43 media = tasks.remote.Media()
44
45 # provisioning
46 setup = tasks.provision.Setup()
b8dce88 updated provisioning for CentOS:
Nick Badoux authored
47 keys = tasks.provision.Keys()
bfbedcf added custom task listing task
Nick Badoux authored
48
49 # generic
50 list_tasks = tasks.generic.ListTasks()
Something went wrong with that request. Please try again.