@@ -43,7 +43,7 @@ void configureManagementNetwork(const Connection& connection)
4343{
4444 const std::string_view ipv6Method = cluster ()->getProvisioner ()
4545 == cloyster::models::Cluster::Provisioner::xCAT
46- ? " diabled "
46+ ? " disabled "
4747 : " link-local" ;
4848
4949 auto interface = connection.getInterface ().value ();
@@ -69,7 +69,7 @@ nmcli connection add type {type} mtu {mtu} ifname {iface} con-name {conn_name} \
6969 ipv4.ignore-auto-routes yes \
7070 ipv6.method {ipv6_method}
7171sleep 0.2
72- nmcli -w 10 device connect {iface}
72+ nmcli device connect {iface}
7373)" ,
7474 fmt::arg (" iface" , interface),
7575 fmt::arg (" conn_name" , connectionName),
@@ -105,7 +105,7 @@ nmcli connection add type {type} mtu {mtu} ifname {iface} con-name {conn_name} \
105105 ipv4.ignore-auto-dns yes \
106106 ipv4.ignore-auto-routes yes \
107107sleep 0.2
108- nmcli -w 10 device connect {iface}
108+ nmcli device connect {iface}
109109)" ,
110110 fmt::arg (" iface" , interface),
111111 fmt::arg (" conn_name" , connectionName),
@@ -140,7 +140,7 @@ nmcli connection add type {type} mtu {mtu} ifname {iface} con-name {conn_name} \
140140 ipv4.ignore-auto-dns yes \
141141 ipv4.ignore-auto-routes yes \
142142sleep 0.2
143- nmcli -w 10 device connect {iface}
143+ nmcli device connect {iface}
144144)" ,
145145 fmt::arg (" iface" , interface),
146146 fmt::arg (" conn_name" , connectionName),
@@ -218,13 +218,15 @@ namespace cloyster::services::ansible::roles::network {
218218
219219void run (const Role& role)
220220{
221- const auto connections = cluster ()->getHeadnode ().getConnections ();
222- LOG_INFO (" Setting up networks" )
221+ LOG_INFO (" Setting up networks, use `--skip network` to skip" )
222+ if (utils::singleton::options ()->shouldSkip (" network" )) {
223+ return ;
224+ }
223225
226+ const auto connections = cluster ()->getHeadnode ().getConnections ();
224227 configureNetworks (connections);
225228 configureFQDN ();
226229 configureHostsFile ();
227-
228230}
229231
230232}
0 commit comments