forked from Juniper/contrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontrail.yml
170 lines (154 loc) · 3.74 KB
/
contrail.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# Database configuration. MySQL/PostgreSQL supported
database:
# MySQL example
type: mysql
dialect: mysql
host: localhost
user: root
password: contrail123
name: contrail_test
#debug: true
# Postgres example
# type: postgres
# dialect: postgres
# Max Open Connections for DB Server
max_open_conn: 100
connection_retries: 10
retry_period: 3s
etcd:
endpoints:
- localhost:2379
username: ""
password: ""
path: contrail
grpc_insecure: true
# Log Level
log_level: debug
# Server configuration
server:
enabled: true
read_timeout: 10
write_timeout: 5
log_api: false
address: ":9091"
# TLS Configuration
tls:
enabled: false
key_file: tools/server.key
cert_file: tools/server.crt
# Enable GRPC or not
enable_grpc: false
# Static file config
# key: URL path
# value: file path. (absolute path recommended in production)
static_files:
public: public
# API Proxy configuration
# key: URL path
# value: String list of backend host
proxy:
/contrail:
- http://localhost:8082
notify_etcd: true
# Keystone configuration
# keystone:
# local: true # Enable local keystone v3. This is only for testing now.
# assignment:
# type: static
# data:
# domains:
# default: &default
# id: default
# name: default
# projects:
# admin: &admin
# id: admin
# name: admin
# domain: *default
# demo: &demo
# id: demo
# name: demo
# domain: *default
# users:
# alice:
# id: alice
# name: Alice
# domain: *default
# password: alice_password
# email: alice@juniper.nets
# roles:
# - id: admin
# name: Admin
# project: *admin
# bob:
# id: bob
# name: Bob
# domain: *default
# password: bob_password
# email: bob@juniper.net
# roles:
# - id: Member
# name: Member
# project: *demo
# store:
# type: memory
# expire: 3600
# insecure: true
# authurl: https://localhost:9091/keystone/v3
# disable authentication with no_auth true and comment out keystone configuraion.
no_auth: true
insecure: true
sync:
enabled: false
storage: json
client:
id: alice
password: alice_password
project_id: admin
domain_id: default
schema_root: /public
endpoint: http://localhost:9091
agent:
enabled: true
backend: file
watcher: polling
tasks:
- schema_id: virtual_network
common:
- vars:
dir: "./work/virtual_networks/"
on_create:
- command: mkdir -p "{{ dir }}"
- save:
dest: "{{ dir }}/{{ resource.uuid }}.yaml"
format: yaml
# - command: pwd
# args:
# chdir: "{{ dir }}"
# - command: date
# - template:
# src: "./agent/cluster.tmpl"
# dest: "{{ dir }}/cluster.txt"
- command: echo created
# register: date
on_update:
- command: "echo updated"
on_delete:
- command: "echo deleted"
- command: "rm -rf {{ dir }}/virtual_networks/{{ resource.uuid }}.yaml"
compilation:
enabled: false
# Global configuration
plugin_directory: 'etc/plugins/'
number_of_workers: 4
max_job_queue_len: 5
msg_queue_lock_time: 30
msg_index_string: 'MsgIndex'
read_lock_string: "MsgReadLock"
master_election: true
# Plugin configuration
plugin:
handlers:
create_handler: 'HandleCreate'
update_handler: 'HandleUpdate'
delete_handler: 'HandleDelete'