有一个配置文件,例如 /etc/network/interfaces。我只想使用 Puppet 管理该文件的某个部分。
例子:
# At the beginning at least is some dynamic content that can be different
# from machine to machine and changed by an admin manually
auto eth0
iface eth0 inet static
address 192.168.108.5
netmask 255.255.255.0
# BEGIN PUPPET WLAN0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.109.5
netmask 255.255.255.0
# END PUPPET WLAN0
# Potentially more stuff that I do not want to touch through Puppet
# But could be static if it makes it …
Run Code Online (Sandbox Code Playgroud) 我想使用自定义分区配方预置 Ubuntu 12.04 安装程序。我的磁盘布局相当复杂,配方语法本身也是如此。手工制作这样的食谱似乎很乏味且容易出错。
是否有工具可以简单地从现有磁盘创建配方,包括其分区和 LVM 配置?