Pavel Cizinsky
f03c4e8227
add support for cpuset
Related PROD-23040 (PROD:23040)
Change-Id: I6cf2cb5ff66dcffb1532343a58416fb242703322
6 lat temu
Alexandru Avadanii
00f187a90e
libvirt xml: pass loader, virt machine, cpu mode
Spawning AArch64 VMs using salt.control.virt requires a few extra
domain configuration items to be configurable:
- libvirt xml: pass loader param to vm
Based on upstream commit [1].
- libvirt xml: pass virt machine type
- libvirt xml: pass cpu mode to vm
- virt module: Allow NVRAM unlinking on DOM undefine
UEFI-enabled VMs usually have pflash (NVRAM) devices attached,
which require one additional libvirt flag to be passed at 'undefine'.
This is usually the case for AArch64 (arm64) VMs, where AAVMF (AA64
UEFI) is the only supported guest bootloader.
[1] https://github.com/saltstack/salt/commit/9cace9adb
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
6 lat temu
Dzmitry Stremkouski
97927ee35e
Adding ability to manualy configure network inside VM before boot.
This patchset obsoletes switching from "dhcp" to "static" during
deployment.
Example pillars:
salt:
control:
enabled: true
virt_enabled: true
size:
small:
cpu: 1
ram: 1
cluster:
infra:
domain: example.com
engine: virt
config:
engine: salt
host: master.domain.com
cloud_init:
network_data:
links:
- id: ens2
name: ens2
type: phy
user_data:
disable_ec2_metadata: true
resize_rootfs: True
timezone: UTC
ssh_deletekeys: True
ssh_genkeytypes: ['rsa', 'dsa', 'ecdsa']
ssh_svcname: ssh
locale: en_US.UTF-8
disable_root: true
apt_preserve_sources_list: false
apt:
sources_list: ""
sources:
ubuntu.list:
source: ${linux:system:repo:ubuntu:source}
mcp_saltstack.list:
source: ${linux:system:repo:mcp_saltstack:source}
node:
ctl01:
provider: kvm01.example.com
image: ubuntu-16.04.qcow2
size: small
cloud_init:
network_data:
networks:
- id: private-ipv4
ip_address: 192.168.0.161
link: ens2
netmask: 255.255.255.0
routes:
- gateway: 192.168.0.1
netmask: 0.0.0.0
network: 0.0.0.0
type: ipv4
Change-Id: I087518404c61e0bab2303e40957bacca94692102
6 lat temu
Ivan Suzdal
7e2a2ca320
Add gitfs support
Change-Id: I3ac728f84a0a63973ca7d90a679c096378eee7c8
Related-PROD: https://mirantis.jira.com/browse/PROD-20392
6 lat temu
Dzmitry Stremkouski
7b15d8a383
Extending salt minion and slat master params.
Change-Id: Ia9410364a82ac84889b80b30380ec5f897c7165c
6 lat temu
Mykyta Karpin
8ece67561c
Add ability to set reactor_worker_threads
There is issue [1] with reactor in salt 2017, one
of the workarounds is to set reactor workers to 1
[1] https://github.com/saltstack/salt/issues/47539
Change-Id: I47d76cc1dc5d0afe6d8b215e2d32cdbab3ac1a8c
Related-Prod: https://mirantis.jira.com/browse/PROD-21463
6 lat temu
Dzmitry Stremkouski
58a0dc667b
Make rest api timeout configureable.
It is important to be able to increase timeouts on api when running
orchestrate tasks via pepper.
Change-Id: I3ff0988bfec3ec4715348c5de15247fe0b075443
6 lat temu
Dzmitry Stremkouski
b8acf1f9c8
Adding virtualport interface attribute for nic
Prod-Related: PROD-20747
Change-Id: Id7822963ab45ff7db3252f5329a9376aa4bf10d6
6 lat temu
Petr Michalec
cfd93e1e91
Add option to overrided minion id without scrict linux formula dependency
Change-Id: I602338811610d4ff08dfb8b2b3aed9dc46f5b3b0
6 lat temu
Oleksii Chupryn
7b7102a675
Add posibility to configure salt logging params:
- LOG_FILE
- LOG_LEVEL
- LOG_LEVEL_LOGFILE
Change-Id: Ic8c0c3bb2a4a80ba0590ca79d8e491dd4f840897
6 lat temu
Dzmitry Stremkouski
7ee2340ea8
[Feature] libvirt xml: pass rng to vm
[Fix] Doc
Issue: - It is not possible to pass [R]andom [N]umber [G]enerator
device to libvirt guest xml in order to control entropy.
- Doc has no information on how to provision vms using salt
Solution: - Pass rng parameters via kwargs from node: pillar
Attach rng xml object to generated xml.
- Provide with an example
Prod-Related: PROD-19214
Customer-Found
Change-Id: Iea111f2d927edf46f06bb7ccfad06d37b752fba9
6 lat temu
Petr Michalec
df75d684a6
Add support for jinja2 renderer options. (2018.2)
Change-Id: Idf6c18597a222e6c1b60bf940eadb1d6d8a611c7
6 lat temu
Jakub Josef
605e77dc73
Fixed shebang kernel limitation with virtualenv during test run ( https://github.com/pypa/virtualenv/issues/596 )
Change-Id: I5057111822b6915ed0c7109db64181a2952d0fcf
6 lat temu
Marcin Iwinski
03560d7e1e
Adding environment variables for salt minion
salt-minion started via upstart is not using /etc/environment to
source variables therefore is not using system wide http_proxy parameters if
they are set there. With this patch if salt.minion.env_vars is set to engine:
file salt will set envvars in /etc/default/salt-minion and will use them for
all commands executed remotely via salt. Since /etc/default is not used on
systems with systemd override for salt-minion to use /etc/environmnet will be
set.
Change-Id: Icfe122de2486a83820a0bd2e2aeea4be3796c6aa
Closes-bug: PROD-16676
7 lat temu
Mateusz Los
4c7cd2d8c8
support for putting vm images in custom locations
Change-Id: I685de4207f1f7f17264cc4ad2d81c3348ca20074
6 lat temu
Petr Michalec
bc015c3611
Add master.conf pillar_safe_render_error option
Change-Id: I3ddfb01dd785f559e4bbf197bc164b8d0389a4f1
6 lat temu
Jakub Josef
6f2f014205
Fixed typo in run_tests.sh file
Change-Id: I345ec121d984320bec4908b416ed6ec19f181c31
7 lat temu
Jiri Broulik
b347eaf066
salt master / minion backup
PROD-16375
Change-Id: I758d38701cdf0e1cc6fa99c38192de2f9052468c
7 lat temu
Ales Komarek
b2ada52c5a
Backup and restore of Salt master's state: pki and generated metadata
Change-Id: I5c88d22589ec1fa6a9806c1a625b752dd4fc8b54
7 lat temu
Petr Michalec
df4e781356
Fix backward compatibility, storage_type/invetory reclass defaults
Change-Id: I8dee93ffd4441391a5b26ba2c5b46e43357a0ca7
7 lat temu
Petr Michalec
1f541c49ed
allow-multiple-ext-pillars-and-reclass-options
Change-Id: I336b0825712218e2381e1654251765a24581da00
7 lat temu
Dennis Dmitriev
a57463cea7
Add possibility to specify multiple disks for salt.control formula
Example:
parameters:
salt:
control:
size: #RAM 4096,8192,16384,32768,65536
openstack.control:
cpu: 8
ram: 32768
disk_profile: small_two_disks
net_profile: default
virt:
disk:
small_two_disks:
- system:
size: 50000
image: http:/path/to/image.qcow2
- cinder-volume:
size: 50000
Change-Id: Ie092b77627cb2b1d36ba4b7a2a7d749ad91881c8
7 lat temu
Elena Ezhova
457e5723f1
Don't send CA keys to mine
Exposing CA keys in a mine creates a security flaw, thus such
should be avoided.
This change removes code responsible for putting and retrieving
CA key from a mine and changes the ca.sls state to allow configuring
where CA cert and its key would be generated as well as their owners.
Fixes PROD-13439
Change-Id: I6d78b13dcb3754c51606edd7e2d8158e128244a4
7 lat temu
Sam Stoelinga
bb4c04bbe4
Salt minion allow to specify HTTP backend
This is useful when using proxies. The default Tornado backend does not
utilize proxy environment variables and isn't able to set no_proxy variable.
Change-Id: I4a51c6fc9abe65d46ed4f3adeb30f7a25337857e
7 lat temu
Jiri Broulik
8827524529
proxy_minion fix
Change-Id: I73a4a14734651f6483fae169a2290e9c5b377d76
7 lat temu
Petr Michalec
7a2f1d281c
version to be specified for salt formula
7 lat temu
Ales Komarek
5474068a16
Reactor system, documentation fixes
Change-Id: Ic64656c6fc3d4f561226d884b8bfb535dd537e14
7 lat temu
Petr Michalec
0218e6e29f
minor, lint/syntax
7 lat temu
Jiri Broulik
a0f4668a04
salt-proxy
Change-Id: I2aba1213b1dda46aee929b8ea583c41316e3eb0b
7 lat temu
Petr Michalec
0f6c4718cf
fix make test in tests_minion_pki_cert
7 lat temu
Petr Michalec
64e7e680f2
fix, ca crt rollout for trusted_ca_minions
7 lat temu
Petr Michalec
e07687e17e
Global trust for SaltCA, distribute ca.crt
7 lat temu
Martin819
92294ff2af
Added Kitchen and Travis
7 lat temu
Filip Pytloun
e3a26aea43
Fix salt-ssh, fix version
8 lat temu
Ales Komarek
b2c8ff6df5
Pillar test data
8 lat temu
Ales Komarek
8fb1da8490
Salt-ssh support
8 lat temu
Filip Pytloun
e3b0492cf9
Fix source dependency parsing
8 lat temu
Ales Komarek
8bc12a261f
Removed failing metadata due to mine call
8 lat temu
Filip Pytloun
2952299538
Fix tests dependency fetch
8 lat temu
Filip Pytloun
a09370fc23
Add makefile, run tests during package build
8 lat temu
Ales Komarek
370356a933
PKI client cert paths
8 lat temu
Ales Komarek
9a9abb366b
Salt PKI proper x509v3 cert extensions
8 lat temu
Ales Komarek
ffbaaed24d
Salt PKI fixes
8 lat temu
Ales Komarek
5d17e4b42c
Added Salt PKI setup, orchestration skeleton
8 lat temu
Filip Pytloun
587cab3fd1
Fix tests
8 lat temu
Ales Komarek
ccbb103887
Tests cleanups
8 lat temu
Ales Komarek
8ba9c0b81a
Provisioning overhaul
8 lat temu
Ales Komarek
9bc205c5ae
Pillar from salt, tests metadata
8 lat temu
Ales Komarek
735a37c1c5
fix reclass tests
8 lat temu
Ales Komarek
cdb1d74ce3
tests fixes
8 lat temu