Merge branch 'add-network-config' into 'master'
set also the network attribute in the examples See merge request linux-infra/documentation!3
This commit is contained in:
@@ -10,9 +10,12 @@ The informations we need are:
|
||||
|
||||
- the server name: ``logging-ra.psi.ch``
|
||||
- the server MAC address: ``23:3d:ef:33:11:22``
|
||||
- static or dynamic IP: ``static``
|
||||
- the OS installer: ``rhel79server``
|
||||
- the server role: ``role::logging_server``
|
||||
- the server environment in puppet: ``production``
|
||||
- the sysdb environment: ``daas``
|
||||
- optional the group inside the sysdb environment (``default`` if not specified): ``logging``
|
||||
|
||||
On our laptop, where we have a local copy of `bob`, we first setup
|
||||
some environment variables to have shorter commands: ::
|
||||
@@ -37,10 +40,19 @@ We setup its MAC address: ::
|
||||
|
||||
bob node add-mac logging-ra.psi.ch 23:3d:ef:33:11:22
|
||||
|
||||
Next decide how the IP address is configured (``dhcp`` or ``static``): ::
|
||||
|
||||
bob node set-attr syslog-ra.psi.ch network=static
|
||||
|
||||
And which installer is used: ::
|
||||
|
||||
bob node set-attr syslog-ra.psi.ch ipxe_installer=rhel79server
|
||||
|
||||
And we finally setup the puppet role and puppet environment: ::
|
||||
|
||||
bob node set-attr syslog-ra.psi.ch puppet_role=role::log_server
|
||||
bob node set-attr syslog-ra.psi.ch puppet_env=production
|
||||
bob node set-attr syslog-ra.psi.ch puppet_group=logging
|
||||
|
||||
|
||||
PXE server-side configuration
|
||||
|
||||
@@ -36,9 +36,11 @@ node::
|
||||
Finally we need to configure the installer to use, and the Puppet-related
|
||||
parameters::
|
||||
|
||||
bob node set-attr $FQDN ipxe_installer=rhel72server
|
||||
bob node set-attr $FQDN ipxe_installer=rhel79server
|
||||
bob node set-attr $FQDN network=static
|
||||
bob node set-attr $FQDN puppet_env=prod
|
||||
bob node set-attr $FQDN puppet_role=role::server
|
||||
bob node set-attr $FQDN puppet_group=default
|
||||
|
||||
|
||||
Redeployment
|
||||
|
||||
Reference in New Issue
Block a user