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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. cloud_init:
  71. user_data:
  72. disable_ec2_metadata: true
  73. resize_rootfs: True
  74. timezone: UTC
  75. ssh_deletekeys: True
  76. ssh_genkeytypes: ['rsa', 'dsa', 'ecdsa']
  77. ssh_svcname: ssh
  78. locale: en_US.UTF-8
  79. disable_root: true
  80. apt_preserve_sources_list: false
  81. apt:
  82. sources_list: ""
  83. sources:
  84. ubuntu.list:
  85. source: ${linux:system:repo:ubuntu:source}
  86. mcp_saltstack.list:
  87. source: ${linux:system:repo:mcp_saltstack:source}
  88. network_data:
  89. links:
  90. - id: ens2
  91. type: phy
  92. name: ens2
  93. node:
  94. ubuntu1:
  95. provider: node01.domain.com
  96. image: ubuntu.qcow
  97. size: medium
  98. img_dest: /var/lib/libvirt/ssdimages
  99. machine: virt-2.11
  100. cpu_mode: host-passthrough
  101. ubuntu2:
  102. provider: node02.domain.com
  103. image: bubuntu.qcomw
  104. size: small
  105. img_dest: /var/lib/libvirt/hddimages
  106. loader:
  107. readonly: yes
  108. type: pflash
  109. path: /usr/share/AAVMF/AAVMF_CODE.fd
  110. ubuntu3:
  111. provider: node03.domain.com
  112. image: meowbuntu.qcom2
  113. size: medium_three_disks
  114. cloud_init:
  115. network_data:
  116. networks:
  117. - <<: *private-ipv4
  118. ip_address: 192.168.0.161
  119. rng:
  120. backend: /dev/urandom
  121. model: random
  122. rate:
  123. period: '1800'
  124. bytes: '1500'