From 1de4b42dadecca490aa8846b86a4f4cb8e13bc01 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Wed, 9 Feb 2022 15:53:03 +0100 Subject: [PATCH 1/4] set also the network attribute in the examples --- admin-guide/deployment/sample.rst | 5 +++++ admin-guide/operations/deployment.rst | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/admin-guide/deployment/sample.rst b/admin-guide/deployment/sample.rst index 87117b75..3f5b61b7 100644 --- a/admin-guide/deployment/sample.rst +++ b/admin-guide/deployment/sample.rst @@ -13,6 +13,7 @@ The informations we need are: - the server role: ``role::logging_server`` - the server environment in puppet: ``production`` - the sysdb environment: ``daas`` + - static or dynamic IP: ``static`` On our laptop, where we have a local copy of `bob`, we first setup some environment variables to have shorter commands: :: @@ -37,6 +38,10 @@ 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 we finally setup the puppet role and puppet environment: :: bob node set-attr syslog-ra.psi.ch puppet_role=role::log_server diff --git a/admin-guide/operations/deployment.rst b/admin-guide/operations/deployment.rst index 3e391032..22dad7c2 100644 --- a/admin-guide/operations/deployment.rst +++ b/admin-guide/operations/deployment.rst @@ -36,10 +36,10 @@ 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 puppet_env=prod bob node set-attr $FQDN puppet_role=role::server - + bob node set-attr $FQDN network=static Redeployment ~~~~~~~~~~~~ From d2632a691649159c4996dbea94341610c3c1d929 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Tue, 15 Feb 2022 17:21:39 +0100 Subject: [PATCH 2/4] also set puppet_group --- admin-guide/deployment/sample.rst | 7 +++++-- admin-guide/operations/deployment.rst | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/admin-guide/deployment/sample.rst b/admin-guide/deployment/sample.rst index 3f5b61b7..18aabc6c 100644 --- a/admin-guide/deployment/sample.rst +++ b/admin-guide/deployment/sample.rst @@ -10,10 +10,11 @@ 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 server role: ``role::logging_server`` - the server environment in puppet: ``production`` - the sysdb environment: ``daas`` - - static or dynamic IP: ``static`` + - 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: :: @@ -45,7 +46,9 @@ Next decide how the IP address is configured (``dhcp`` or ``static``): :: 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_env=production` + bob node set-attr syslog-ra.psi.ch puppet_group=logging + PXE server-side configuration diff --git a/admin-guide/operations/deployment.rst b/admin-guide/operations/deployment.rst index 22dad7c2..a1e0172c 100644 --- a/admin-guide/operations/deployment.rst +++ b/admin-guide/operations/deployment.rst @@ -37,9 +37,11 @@ Finally we need to configure the installer to use, and the Puppet-related parameters:: 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 network=static + bob node set-attr $FQDN puppet_group=default + Redeployment ~~~~~~~~~~~~ From 3be8cc9a5953b2f974fbd549bab716c7d760dfee Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Tue, 15 Feb 2022 17:24:50 +0100 Subject: [PATCH 3/4] set OS installer also --- admin-guide/deployment/sample.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/admin-guide/deployment/sample.rst b/admin-guide/deployment/sample.rst index 18aabc6c..78f0e029 100644 --- a/admin-guide/deployment/sample.rst +++ b/admin-guide/deployment/sample.rst @@ -11,10 +11,11 @@ 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` + - 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: :: @@ -43,10 +44,14 @@ 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_env=production bob node set-attr syslog-ra.psi.ch puppet_group=logging From 1eb8fe39c86bbdfc63d676a5bf22708e9f591053 Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Tue, 15 Feb 2022 17:25:46 +0100 Subject: [PATCH 4/4] remove unnessesary chanbe --- admin-guide/deployment/sample.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/admin-guide/deployment/sample.rst b/admin-guide/deployment/sample.rst index 78f0e029..9f2c543f 100644 --- a/admin-guide/deployment/sample.rst +++ b/admin-guide/deployment/sample.rst @@ -55,7 +55,6 @@ And we finally setup the puppet role and puppet environment: :: bob node set-attr syslog-ra.psi.ch puppet_group=logging - PXE server-side configuration -----------------------------