You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -129,7 +180,25 @@ func InstanceInfoHandler(sm smdclient.SMDClientInterface, store cistore.Store) h
129
180
}
130
181
}
131
182
132
-
// Phone home should be a POST request x-www-form-urlencoded like this: pub_key_rsa=rsa_contents&pub_key_ecdsa=ecdsa_contents&pub_key_ed25519=ed25519_contents&instance_id=i-87018aed&hostname=myhost&fqdn=myhost.internal
183
+
// PhoneHomeHandler godoc
184
+
//
185
+
// @Summary Signal to cloud-init server that host has completed running cloud-init configuration
186
+
// @Description Signal to the cloud-init server that the specific host has completed running
187
+
// @Description the cloud-init configuration tasks so that, if a WireGuard tunnel is being used,
188
+
// @Description it can be torn down. This endpoint should not be manually requested by a user
189
+
// @Description but is only meant to be used by a cloud-init client that has received its
190
+
// @Description config from an OpenCHAMI cloud-init server.
191
+
// @Tags phone-home
192
+
// @Success 200 {object} nil
193
+
// @Failure 400 {object} nil
194
+
// @Param id path string true "Node's unique identifier"
LocalHostnamestring`json:"local-hostname" yaml:"local-hostname" example:"compute-1" description:"Node-specific short hostname"`
13
+
Hostnamestring`json:"hostname" yaml:"hostname" example:"compute-1.demo.openchami.cluster" description:"Node-specific hostname, often FQDN and how other hosts may reference this host"`
14
+
ClusterNamestring`json:"cluster-name" yaml:"cluster-name" example:"demo" description:"Long name of entire cluster, used as a human-readable identifier and is used in the cluster's FQDN"`
ClusterNamestring`json:"cluster_name,omitempty" yaml:"cluster_name,omitempty" example:"demo" description:"Long name of entire cluster, used as a human-readable identifier and is used in the cluster's FQDN"`
44
+
Groupsmap[string]Group`json:"groups" yaml:"groups" description:"Groups known to cloud-init and their meta-data"`
0 commit comments