mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Make "stable" the salt install_source default.
Fix a few indentation things
This commit is contained in:
parent
81659321af
commit
b03ec12c41
2 changed files with 15 additions and 28 deletions
|
@ -9,30 +9,20 @@
|
||||||
"salt": {
|
"salt": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"master": {
|
"master": { "type": "string" },
|
||||||
"type": "string"
|
"install_source": { "enum": ["stable", "daily", "git"] },
|
||||||
},
|
"version": { "type": "string" },
|
||||||
"install_source": {
|
"grains": {
|
||||||
"type": "string"
|
"type": "object",
|
||||||
},
|
"patternProperties": {
|
||||||
"version": {
|
"^[^\/\\0]+$": { "type": "string" }
|
||||||
"type": "string"
|
},
|
||||||
},
|
"minItems": 1
|
||||||
"grains": {
|
}
|
||||||
"type": "object",
|
|
||||||
"patternProperties": {
|
|
||||||
"^[^\/\\0]+$": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minItems": 1
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"required": ["install_source"]
|
"required": ["install_source"]
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["salt"]
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"required": ["plugins"]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,17 +34,14 @@ class BootstrapSaltMinion(Task):
|
||||||
|
|
||||||
# This is needed since bootstrap doesn't handle -X for debian distros properly.
|
# This is needed since bootstrap doesn't handle -X for debian distros properly.
|
||||||
# We disable checking for running services at end since we do not start them.
|
# We disable checking for running services at end since we do not start them.
|
||||||
sed_i(
|
sed_i(bootstrap_script, 'install_debian_check_services', 'disabled_debian_check_services')
|
||||||
bootstrap_script, 'install_debian_check_services',
|
|
||||||
"disabled_debian_check_services")
|
|
||||||
|
|
||||||
bootstrap_command = [
|
bootstrap_command = ['chroot', info.root, 'bash', 'install_salt.sh', '-X']
|
||||||
'chroot', info.root, 'bash', 'install_salt.sh', '-X']
|
|
||||||
|
|
||||||
if 'master' in info.manifest.plugins['salt']:
|
if 'master' in info.manifest.plugins['salt']:
|
||||||
bootstrap_command.extend(['-A', info.manifest.plugins['salt']['master']])
|
bootstrap_command.extend(['-A', info.manifest.plugins['salt']['master']])
|
||||||
|
|
||||||
install_source = info.manifest.plugins['salt']['install_source']
|
install_source = info.manifest.plugins['salt'].get('install_source', 'stable')
|
||||||
|
|
||||||
bootstrap_command.append(install_source)
|
bootstrap_command.append(install_source)
|
||||||
if install_source == 'git' and ('version' in info.manifest.plugins['salt']):
|
if install_source == 'git' and ('version' in info.manifest.plugins['salt']):
|
||||||
|
|
Loading…
Add table
Reference in a new issue