viniciusdenardi

FCOS - Disk Partition - Stuck

Nov 23rd, 2020 (edited)
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. variant: fcos
  2. version: 1.1.0
  3. passwd:
  4. users:
  5. - name: core
  6. password_hash: $1.......
  7. ssh_authorized_keys:
  8. - ssh-rsa AAAA......
  9. groups: [ sudo, docker ]
  10.  
  11. storage:
  12. directories:
  13. - path: /var/dados
  14. overwrite: true
  15. disks:
  16. - device: /dev/sdb
  17. wipe_table: true
  18. partitions:
  19. - number: 0
  20. size_mib: 0
  21. start_mib: 0
  22. wipe_partition_entry: true
  23. type_guid: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
  24. label: dados
  25. filesystems:
  26. - path: /var/dados
  27. device: /dev/sdb
  28. format: ext4
  29. wipe_filesystem: false
  30. with_mount_unit: true
  31.  
  32. files:
  33.  
  34. - path: /etc/hostname
  35. mode: 0644
  36. contents:
  37. inline: testevinecontainer
  38.  
  39. - path: /etc/ssh/sshd_config.d/20-enable-passwords.conf
  40. mode: 0644
  41. contents:
  42. inline: |
  43. PasswordAuthentication yes
  44.  
  45. - path: /etc/NetworkManager/system-connections/ens33.nmconnection
  46. mode: 0600
  47. overwrite: true
  48. contents:
  49. inline: |
  50. [connection]
  51. type=ethernet
  52. id='Custom interface'
  53. interface-name=ens33
  54.  
  55. [ethernet]
  56. mac-address=000C2970D8C0
  57.  
  58. [ipv4]
  59. method=manual
  60. addresses=192.168.0.76/24
  61. gateway=192.168.0.23
  62. dns=192.168.0.23;1.1.1.1;8.8.8.8
  63. dns-search=redhat.com
  64.  
  65. systemd:
  66. units:
  67. - name: dados.mount
  68. enabled: true
  69. contents: |
  70. [Unit]
  71. Before=local-fs.target
  72.  
  73. [Mount]
  74. Where=/var/dados
  75. What=/dev/sdb
  76. Type=ext4
  77.  
  78. [Install]
  79. WantedBy=local-fs.target
Add Comment
Please, Sign In to add comment