New Saltstack Salt formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

control_virt_custom.sls 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. _param:
  2. private-ipv4: &private-ipv4
  3. - id: private-ipv4
  4. type: ipv4
  5. link: ens2
  6. netmask: 255.255.255.0
  7. routes:
  8. - gateway: 192.168.0.1
  9. netmask: 0.0.0.0
  10. network: 0.0.0.0
  11. virt:
  12. disk:
  13. three_disks:
  14. - system:
  15. size: 4096
  16. image: ubuntu.qcow
  17. - repository_snapshot:
  18. size: 8192
  19. image: snapshot.qcow
  20. - cinder-volume:
  21. size: 2048
  22. nic:
  23. control:
  24. - name: nic01
  25. bridge: br-pxe
  26. model: virtio
  27. - name: nic02
  28. bridge: br-cp
  29. model: virtio
  30. - name: nic03
  31. bridge: br-store-front
  32. model: virtio
  33. - name: nic04
  34. bridge: br-public
  35. model: virtio
  36. - name: nic05
  37. bridge: br-prv
  38. model: virtio
  39. virtualport:
  40. type: openvswitch
  41. salt:
  42. minion:
  43. enabled: true
  44. master:
  45. host: config01.dc01.domain.com
  46. control:
  47. enabled: true
  48. virt_enabled: true
  49. size:
  50. small:
  51. cpu: 1
  52. ram: 1
  53. medium:
  54. cpu: 2
  55. ram: 4
  56. large:
  57. cpu: 4
  58. ram: 8
  59. medium_three_disks:
  60. cpu: 2
  61. ram: 4
  62. disk_profile: three_disks
  63. cluster:
  64. vpc20_infra:
  65. domain: neco.virt.domain.com
  66. engine: virt
  67. config:
  68. engine: salt
  69. host: master.domain.com
  70. seed: cloud-init
  71. cloud_init:
  72. user_data:
  73. disable_ec2_metadata: true
  74. resize_rootfs: True
  75. timezone: UTC
  76. ssh_deletekeys: True
  77. ssh_genkeytypes: ['rsa', 'dsa', 'ecdsa']
  78. ssh_svcname: ssh
  79. locale: en_US.UTF-8
  80. disable_root: true
  81. apt_preserve_sources_list: false
  82. apt:
  83. sources_list: ""
  84. sources:
  85. ubuntu.list:
  86. source: ${linux:system:repo:ubuntu:source}
  87. mcp_saltstack.list:
  88. source: ${linux:system:repo:mcp_saltstack:source}
  89. network_data:
  90. links:
  91. - id: ens2
  92. type: phy
  93. name: ens2
  94. node:
  95. ubuntu1:
  96. provider: node01.domain.com
  97. image: ubuntu.qcow
  98. size: medium
  99. img_dest: /var/lib/libvirt/ssdimages
  100. machine: virt-2.11
  101. cpu_mode: host-passthrough
  102. cpuset: '1-2'
  103. ubuntu2:
  104. provider: node02.domain.com
  105. image: bubuntu.qcomw
  106. size: small
  107. img_dest: /var/lib/libvirt/hddimages
  108. seed: qemu-nbd
  109. cloud_init:
  110. enabled: false
  111. loader:
  112. readonly: yes
  113. type: pflash
  114. path: /usr/share/AAVMF/AAVMF_CODE.fd
  115. ubuntu3:
  116. provider: node03.domain.com
  117. image: meowbuntu.qcom2
  118. size: medium_three_disks
  119. cloud_init:
  120. user_data:
  121. salt_minion:
  122. config:
  123. master: master.domain.com
  124. network_data:
  125. networks:
  126. - <<: *private-ipv4
  127. ip_address: 192.168.0.161
  128. rng:
  129. backend: /dev/urandom
  130. model: random
  131. rate:
  132. period: '1800'
  133. bytes: '1500'