config.json.template 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. {
  2. "ociVersion": "1.0.0",
  3. "platform": {
  4. "os": "linux",
  5. "arch": "amd64"
  6. },
  7. "process": {
  8. "terminal": false,
  9. "consoleSize": {
  10. "height": 0,
  11. "width": 0
  12. },
  13. "user": {
  14. "uid": 0,
  15. "gid": 0
  16. },
  17. "args": [
  18. "/usr/local/bin/run-system-container.sh"
  19. ],
  20. "env": [
  21. "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  22. "TERM=xterm",
  23. "OPTS=$OPTS",
  24. "PLAYBOOK_FILE=$PLAYBOOK_FILE",
  25. "ANSIBLE_CONFIG=$ANSIBLE_CONFIG"
  26. ],
  27. "cwd": "/usr/share/ansible/openshift-ansible",
  28. "rlimits": [
  29. {
  30. "type": "RLIMIT_NOFILE",
  31. "hard": 1024,
  32. "soft": 1024
  33. }
  34. ],
  35. "noNewPrivileges": true
  36. },
  37. "root": {
  38. "path": "rootfs",
  39. "readonly": true
  40. },
  41. "mounts": [
  42. {
  43. "destination": "/proc",
  44. "type": "proc",
  45. "source": "proc"
  46. },
  47. {
  48. "destination": "/dev",
  49. "type": "tmpfs",
  50. "source": "tmpfs",
  51. "options": [
  52. "nosuid",
  53. "strictatime",
  54. "mode=755",
  55. "size=65536k"
  56. ]
  57. },
  58. {
  59. "destination": "/dev/pts",
  60. "type": "devpts",
  61. "source": "devpts",
  62. "options": [
  63. "nosuid",
  64. "noexec",
  65. "newinstance",
  66. "ptmxmode=0666",
  67. "mode=0620",
  68. "gid=5"
  69. ]
  70. },
  71. {
  72. "destination": "/dev/shm",
  73. "type": "tmpfs",
  74. "source": "shm",
  75. "options": [
  76. "nosuid",
  77. "noexec",
  78. "nodev",
  79. "mode=1777",
  80. "size=65536k"
  81. ]
  82. },
  83. {
  84. "destination": "/dev/mqueue",
  85. "type": "mqueue",
  86. "source": "mqueue",
  87. "options": [
  88. "nosuid",
  89. "noexec",
  90. "nodev"
  91. ]
  92. },
  93. {
  94. "destination": "/sys",
  95. "type": "sysfs",
  96. "source": "sysfs",
  97. "options": [
  98. "nosuid",
  99. "noexec",
  100. "nodev",
  101. "ro"
  102. ]
  103. },
  104. {
  105. "type": "bind",
  106. "source": "$HOME_ROOT/.ssh",
  107. "destination": "/opt/app-root/src/.ssh",
  108. "options": [
  109. "bind",
  110. "rw",
  111. "mode=755"
  112. ]
  113. },
  114. {
  115. "type": "bind",
  116. "source": "$HOME_ROOT",
  117. "destination": "/root",
  118. "options": [
  119. "bind",
  120. "rw",
  121. "mode=755"
  122. ]
  123. },
  124. {
  125. "type": "bind",
  126. "source": "$VAR_LIB_OPENSHIFT_INSTALLER",
  127. "destination": "/var/lib/openshift-installer",
  128. "options": [
  129. "bind",
  130. "rw",
  131. "mode=755"
  132. ]
  133. },
  134. {
  135. "type": "bind",
  136. "source": "$VAR_LOG_OPENSHIFT_LOG",
  137. "destination": "/var/log/ansible.log",
  138. "options": [
  139. "bind",
  140. "rw",
  141. "mode=755"
  142. ]
  143. },
  144. {
  145. "destination": "/root/.ansible",
  146. "type": "tmpfs",
  147. "source": "tmpfs",
  148. "options": [
  149. "nosuid",
  150. "strictatime",
  151. "mode=755"
  152. ]
  153. },
  154. {
  155. "destination": "/tmp",
  156. "type": "tmpfs",
  157. "source": "tmpfs",
  158. "options": [
  159. "nosuid",
  160. "strictatime",
  161. "mode=755"
  162. ]
  163. },
  164. {
  165. "type": "bind",
  166. "source": "$INVENTORY_FILE",
  167. "destination": "/etc/ansible/hosts",
  168. "options": [
  169. "bind",
  170. "rw",
  171. "mode=755"
  172. ]
  173. },
  174. {
  175. "destination": "/etc/resolv.conf",
  176. "type": "bind",
  177. "source": "/etc/resolv.conf",
  178. "options": [
  179. "ro",
  180. "rbind",
  181. "rprivate"
  182. ]
  183. },
  184. {
  185. "destination": "/sys/fs/cgroup",
  186. "type": "cgroup",
  187. "source": "cgroup",
  188. "options": [
  189. "nosuid",
  190. "noexec",
  191. "nodev",
  192. "relatime",
  193. "ro"
  194. ]
  195. }
  196. ],
  197. "hooks": {
  198. },
  199. "linux": {
  200. "resources": {
  201. "devices": [
  202. {
  203. "allow": false,
  204. "access": "rwm"
  205. }
  206. ]
  207. },
  208. "namespaces": [
  209. {
  210. "type": "pid"
  211. },
  212. {
  213. "type": "mount"
  214. }
  215. ],
  216. "maskedPaths": [
  217. "/proc/kcore",
  218. "/proc/latency_stats",
  219. "/proc/timer_list",
  220. "/proc/timer_stats",
  221. "/proc/sched_debug",
  222. "/sys/firmware"
  223. ],
  224. "readonlyPaths": [
  225. "/proc/asound",
  226. "/proc/bus",
  227. "/proc/fs",
  228. "/proc/irq",
  229. "/proc/sys",
  230. "/proc/sysrq-trigger"
  231. ]
  232. }
  233. }