Advertisement
Guest User

Untitled

a guest
Sep 14th, 2020
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. This is my ignition yml file eg. 1 without units for mounts
  2. ############################################################
  3. [root@fcct-ignition series]# cat config-part.yml
  4. variant: fcos
  5. version: 1.0.0
  6. passwd:
  7. users:
  8. - name: core
  9. password_hash: "$1$core$5aXXhoTQK2Rg89MGKrHAl1"
  10. ssh_authorized_keys:
  11. - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSNZn3WDvVg1ZdtTOhn1lHkUGfAsaoiTufMULduM804oc62dwgnnryfB1z9YZ5NUtMQdJANu5dc0+UaxLxrvKkVct6N903IjnsEh6l8JIUcFxpExVZBUEOAQ4Gl2dN44OVH1rdjXBJxgWc/+o3kCvOkUmQzjHpp7C0S0HJfZcvEzaIyho4+RrqNjaQw/xiiaKbo6hbnq02JWeZuy8SaUAzZG1uo2I/5KOKi9vlhOuhXS1lrbFWQ5IJN0g9iaz5I01zCxO/AC2ETHA4GN7CqFAG/H/sfW1eht8py6R/s4b4wVLMOPzn5G4sF3y2p+puoBfO0PuPVwWdx4le7iefOc8d amit@bondwal"
  12.  
  13. storage:
  14.  
  15. disks:
  16. - device: /dev/disl/by-id/ata-VBOX_HARDDISK_VBd653e3a5-a1fac801
  17. wipe_table: true
  18. partitions:
  19. - label: BOOT
  20. number: 1
  21. size_mib: 1024
  22. - label: SYSROOT
  23. number: 2
  24. size_mib: 5120
  25. - label: BOOT_EFI
  26. number: 0
  27. size_mib: 1024
  28. filesystems:
  29. - path: /boot
  30. device: "/dev/sda1"
  31. format: "ext4"
  32. label: BOOT
  33. - path: /sysroot
  34. device: "/dev/sda2"
  35. format: "ext4"
  36. label: SYSROOT
  37. - path: /boot/efi
  38. device: "/dev/sda5"
  39. format: "vfat"
  40. label: BOOT_EFI
  41.  
  42. ###############################################################333
  43. This is my ignition yml file eg. 2 with units for mounts
  44. ###################################################################
  45.  
  46. [root@fcct-ignition series]# cat config-part-4.yml
  47. variant: fcos
  48. version: 1.0.0
  49. passwd:
  50. users:
  51. - name: core
  52. password_hash: "$1$core$5aXXhoTQK2Rg89MGKrHAl1"
  53. ssh_authorized_keys:
  54. - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSNZn3WDvVg1ZdtTOhn1lHkUGfAsaoiTufMULduM804oc62dwgnnryfB1z9YZ5NUtMQdJANu5dc0+UaxLxrvKkVct6N903IjnsEh6l8JIUcFxpExVZBUEOAQ4Gl2dN44OVH1rdjXBJxgWc/+o3kCvOkUmQzjHpp7C0S0HJfZcvEzaIyho4+RrqNjaQw/xiiaKbo6hbnq02JWeZuy8SaUAzZG1uo2I/5KOKi9vlhOuhXS1lrbFWQ5IJN0g9iaz5I01zCxO/AC2ETHA4GN7CqFAG/H/sfW1eht8py6R/s4b4wVLMOPzn5G4sF3y2p+puoBfO0PuPVwWdx4le7iefOc8d amit@bondwal"
  55.  
  56. storage:
  57.  
  58. disks:
  59. - device: /dev/disl/by-id/ata-VBOX_HARDDISK_VBd653e3a5-a1fac801
  60. wipe_table: true
  61. partitions:
  62. - label: BOOT
  63. number: 1
  64. size_mib: 1024
  65. - label: SYSROOT
  66. number: 2
  67. size_mib: 5120
  68. - label: BOOT_EFI
  69. number: 0
  70. size_mib: 1024
  71. filesystems:
  72. - path: /boot
  73. device: "/dev/sda1"
  74. format: "ext4"
  75. label: BOOT
  76. - path: /sysroot
  77. device: "/dev/sda2"
  78. format: "ext4"
  79. label: SYSROOT
  80. - path: /boot/efi
  81. device: "/dev/sda5"
  82. format: "vfat"
  83. label: BOOT_EFI
  84. systemd:
  85. units:
  86. - name: boot.mount
  87. enabled: true
  88. contents: |
  89. [Unit]
  90. Before=local-fs.target
  91. [Mount]
  92. Where=/boot
  93. What=/dev/sda2
  94. Type=ext4
  95. [Install]
  96. WantedBy=local-fs.target
  97. - name: root.mount
  98. enabled: true
  99. contents: |
  100. [Unit]
  101. Before=local-fs.target
  102. [Mount]
  103. Where=/sysroot
  104. What=/dev/sda3
  105. Type=ext4
  106. [Install]
  107. WantedBy=local-fs.target
  108. - name: temp.mount
  109. enabled: true
  110. contents: |
  111. [Unit]
  112. Before=local-fs.target
  113. [Mount]
  114. Where=/boot/efi
  115. What=/dev/sda1
  116. Type=vfat
  117. [Install]
  118. WantedBy=local-fs.target
  119. [root@fcct-ignition series]#
  120.  
  121. ############################################33
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement