Commit ac4d67ee by Czémán Arnold

Merge branch 'new-option-to-installer' into 'master'

Add development options to install

See merge request !14
parents 26b7ba4b ce0c762a
......@@ -19,4 +19,4 @@ if [ $retv -eq 0 ]; then
......@@ -112,12 +112,20 @@ class KeyStore:
with open(self.keyfile, 'w') as f:
yaml.dump(, f)
parser = argparse.ArgumentParser()
parser.add_argument('--kvm-present', action='store_true',
help='Installs with KVM hypervisor otherwise with QEMU.')
parser.add_argument('--dev', action='store_true',
help='Installs Develpment version')
parser.add_argument('--local', action='store_true',
help='Installs Develpment version')
args = parser.parse_args()
if or args.local:
deployment_type = 'local'
deployment_type = 'production'
KEYFILE = join(PREFIX, '.circlekeys')
ks = KeyStore(KEYFILE)
......@@ -126,7 +134,7 @@ installer_sls = {
'proxy_secret': ks.get_key('proxy_secret'),
'secret_key': ks.get_key('secret_key'),
'timezone': get_timezone(),
'deployment_type': 'production',
'deployment_type': deployment_type,
'admin_user': 'admin',
'admin_pass': input_admin_password(),
'database': {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment