refactor: openpitrix module

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-09-25 14:07:15 +08:00
parent d0dc66cf28
commit 1b5681c12b
314 changed files with 72092 additions and 25762 deletions

View File

@@ -0,0 +1,43 @@
// Copyright 2018 The OpenPitrix Authors. All rights reserved.
// Use of this source code is governed by a Apache license
// that can be found in the LICENSE file.
package config
const InitialGlobalConfig = `app:
default_draft_status: true
repo:
# cron usage: https://godoc.org/github.com/robfig/cron#hdr-Usage
#
# "@every 1h30m" means Every hour thirty
# "@hourly" means Every hour
# "0 30 * * * *" means Every hour on the half hour
#
# Field name | Mandatory? | Allowed values | Allowed special characters
# ---------- | ---------- | -------------- | --------------------------
# Seconds | Yes | 0-59 | * / , -
# Minutes | Yes | 0-59 | * / , -
# Hours | Yes | 0-23 | * / , -
# Day of month | Yes | 1-31 | * / , - ?
# Month | Yes | 1-12 or JAN-DEC | * / , -
# Day of week | Yes | 0-6 or SUN-SAT | * / , - ?
#
cron: "0 30 4 * * *"
max_repo_events: 20
cluster:
frontgate_conf: '{"app_id":"app-ABCDEFGHIJKLMNOPQRST","version_id":"appv-ABCDEFGHIJKLMNOPQRST","name":"frontgate","description":"OpenPitrixbuilt-infrontgateservice","subnet":"","nodes":[{"container":{"type":"docker","image":"openpitrix/openpitrix:metadata"},"count":1,"cpu":1,"memory":1024,"volume":{"size":10,"mount_point":"/data","filesystem":"ext4"}}]}'
frontgate_auto_delete: true
frontgate_auto_update: false
job:
max_working_jobs: 20
task:
max_working_tasks: 20
pilot:
ip: 127.0.0.1
port: 9114
basic_config:
platform_name: OpenPitrix
platform_url: https://lab.openpitrix.io
install_module:
iam: false
notification: false`