Updated pod on requiring 'new' for manifest_uuid when creating new

manifests.

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 7 months ago
parent 566887462e
commit 8dc3a8262f
  1. 6
      Anvil/Tools/Striker.pm
  2. 15
      tools/striker-auto-initialize-all

@ -312,9 +312,9 @@ This is a comma-separated list of DNS servers to use.
This is the domain name to use for this Anvil! node. This is the domain name to use for this Anvil! node.
=head3 manifest_uuid (optional) =head3 manifest_uuid (required)
This allows updating an existing mannifest, or specifying the manifest UUID to use for the new manifest. This allows updating an existing manifest, or specifying the manifest UUID to use for the new manifest. When creating a new manifest, set this to C<< new >>.
=head3 mtu (optional) =head3 mtu (optional)
@ -382,7 +382,7 @@ sub generate_manifest
if (not $manifest_uuid) if (not $manifest_uuid)
{ {
# Don't proceed, we'd get an invalid manifest. # Don't proceed, we'd get an invalid manifest.
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 0, priority => "err", key => "warning_0159"}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 0, priority => "err", key => "warning_0041"});
return('!!error!!'); return('!!error!!');
} }

@ -1072,13 +1072,14 @@ sub create_manifest
# Now generate the manifest. # Now generate the manifest.
my ($manifest_uuid, $manifest_name) = $anvil->Striker->generate_manifest({ my ($manifest_uuid, $manifest_name) = $anvil->Striker->generate_manifest({
debug => 2, debug => 2,
dns => $network_dns, manifest_uuid => "new",
domain => $domain, dns => $network_dns,
mtu => $network_mtu, domain => $domain,
ntp => $network_ntp, mtu => $network_mtu,
prefix => $name_prefix, ntp => $network_ntp,
sequence => $padded_sequence, prefix => $name_prefix,
sequence => $padded_sequence,
}); });
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => {
manifest_uuid => $manifest_uuid, manifest_uuid => $manifest_uuid,

Loading…
Cancel
Save