import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; export declare class Host extends pulumi.CustomResource { /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HostState, opts?: pulumi.CustomResourceOptions): Host; /** * Returns true if the given object is an instance of Host. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Host; /** * @SUMMARY A host managed by Foreman. */ readonly __meta_: pulumi.Output; /** * ID of the architecture of this host */ readonly architectureId: pulumi.Output; /** * @deprecated The feature no longer exists */ readonly bmcSuccess: pulumi.Output; /** * Add additional information about this host.Note: Changes to this attribute will trigger a host rebuild. */ readonly comment: pulumi.Output; /** * Hypervisor specific VM options. Must be a JSON string, as every compute provider has different attributes schema */ readonly computeAttributes: pulumi.Output; readonly computeProfileId: pulumi.Output; readonly computeResourceId: pulumi.Output; /** * IDs of the applied config groups. */ readonly configGroupIds: pulumi.Output; /** * ID of the domain to assign to the host. */ readonly domainId: pulumi.Output; /** * The domain name of the host. */ readonly domainName: pulumi.Output; /** * Enables PMI/BMC functionality. On create and update calls, having this enabled will force a host to poweroff, set next * boot to PXE and power on. Defaults to `false`. */ readonly enableBmc: pulumi.Output; /** * ID of the environment to assign to the host. */ readonly environmentId: pulumi.Output; /** * Host fully qualified domain name. Read-only value to be used in variables. @EXAMPLE "compute01.dc1.company.com" */ readonly fqdn: pulumi.Output; /** * ID of the hostgroup to assign to the host. */ readonly hostgroupId: pulumi.Output; /** * ID of an image to be used as base for this host when cloning */ readonly imageId: pulumi.Output; /** * Host interface information. */ readonly interfacesAttributes: pulumi.Output; /** * NAME of the location to assign to the host. */ readonly locationName: pulumi.Output; /** * Manage power operations, e.g. power on, if host's build flag will be enabled. */ readonly managePowerOperations: pulumi.Output; /** * Whether or not this host is managed by Foreman. Create host only, don't set build status or manage power states. */ readonly managed: pulumi.Output; /** * ID of the medium mounted on the host. */ readonly mediumId: pulumi.Output; /** * ID of the hardware model if applicable */ readonly modelId: pulumi.Output; /** * Name of this host as stored in Foreman. Can be short name or FQDN, depending on your Foreman settings (especially the * setting 'append_domain_name_for_hosts'). */ readonly name: pulumi.Output; /** * ID of the operating system to put on the host. */ readonly operatingsystemId: pulumi.Output; /** * NAME of the organization to assign to the host. */ readonly organizationName: pulumi.Output; /** * ID of the user or usergroup that owns the host. */ readonly ownerId: pulumi.Output; /** * Owner of the host, must be either User ot Usergroup */ readonly ownerType: pulumi.Output; /** * A map of parameters that will be saved as host parameters in the machine config. */ readonly parameters: pulumi.Output<{ [key: string]: string; }>; /** * Sets the provision method in Foreman for this host: either network-based ('build') or image-based ('image') */ readonly provisionMethod: pulumi.Output; /** * ID of the partition table the host should use */ readonly ptableId: pulumi.Output; /** * IDs of the applied puppet classes. */ readonly puppetClassIds: pulumi.Output; /** * Number of times to retry on a failed attempt to register or delete a host in foreman. */ readonly retryCount: pulumi.Output; /** * Default root password */ readonly rootPassword: pulumi.Output; /** * Sets the Foreman-internal 'build' flag on this host - even if it is already built completely. */ readonly setBuildFlag: pulumi.Output; /** * The short name of this host. Example: when the FQDN is 'host01.example.org', then 'host01' is the short name. */ readonly shortname: pulumi.Output; /** * ID of the subnet the host should be placed in */ readonly subnetId: pulumi.Output; /** * Build token. Can be used to signal to Foreman that a host build is complete. */ readonly token: pulumi.Output; /** * Create a Host resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: HostArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Host resources. */ export interface HostState { /** * @SUMMARY A host managed by Foreman. */ __meta_?: pulumi.Input; /** * ID of the architecture of this host */ architectureId?: pulumi.Input; /** * @deprecated The feature no longer exists */ bmcSuccess?: pulumi.Input; /** * Add additional information about this host.Note: Changes to this attribute will trigger a host rebuild. */ comment?: pulumi.Input; /** * Hypervisor specific VM options. Must be a JSON string, as every compute provider has different attributes schema */ computeAttributes?: pulumi.Input; computeProfileId?: pulumi.Input; computeResourceId?: pulumi.Input; /** * IDs of the applied config groups. */ configGroupIds?: pulumi.Input[]>; /** * ID of the domain to assign to the host. */ domainId?: pulumi.Input; /** * The domain name of the host. */ domainName?: pulumi.Input; /** * Enables PMI/BMC functionality. On create and update calls, having this enabled will force a host to poweroff, set next * boot to PXE and power on. Defaults to `false`. */ enableBmc?: pulumi.Input; /** * ID of the environment to assign to the host. */ environmentId?: pulumi.Input; /** * Host fully qualified domain name. Read-only value to be used in variables. @EXAMPLE "compute01.dc1.company.com" */ fqdn?: pulumi.Input; /** * ID of the hostgroup to assign to the host. */ hostgroupId?: pulumi.Input; /** * ID of an image to be used as base for this host when cloning */ imageId?: pulumi.Input; /** * Host interface information. */ interfacesAttributes?: pulumi.Input[]>; /** * NAME of the location to assign to the host. */ locationName?: pulumi.Input; /** * Manage power operations, e.g. power on, if host's build flag will be enabled. */ managePowerOperations?: pulumi.Input; /** * Whether or not this host is managed by Foreman. Create host only, don't set build status or manage power states. */ managed?: pulumi.Input; /** * ID of the medium mounted on the host. */ mediumId?: pulumi.Input; /** * ID of the hardware model if applicable */ modelId?: pulumi.Input; /** * Name of this host as stored in Foreman. Can be short name or FQDN, depending on your Foreman settings (especially the * setting 'append_domain_name_for_hosts'). */ name?: pulumi.Input; /** * ID of the operating system to put on the host. */ operatingsystemId?: pulumi.Input; /** * NAME of the organization to assign to the host. */ organizationName?: pulumi.Input; /** * ID of the user or usergroup that owns the host. */ ownerId?: pulumi.Input; /** * Owner of the host, must be either User ot Usergroup */ ownerType?: pulumi.Input; /** * A map of parameters that will be saved as host parameters in the machine config. */ parameters?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Sets the provision method in Foreman for this host: either network-based ('build') or image-based ('image') */ provisionMethod?: pulumi.Input; /** * ID of the partition table the host should use */ ptableId?: pulumi.Input; /** * IDs of the applied puppet classes. */ puppetClassIds?: pulumi.Input[]>; /** * Number of times to retry on a failed attempt to register or delete a host in foreman. */ retryCount?: pulumi.Input; /** * Default root password */ rootPassword?: pulumi.Input; /** * Sets the Foreman-internal 'build' flag on this host - even if it is already built completely. */ setBuildFlag?: pulumi.Input; /** * The short name of this host. Example: when the FQDN is 'host01.example.org', then 'host01' is the short name. */ shortname?: pulumi.Input; /** * ID of the subnet the host should be placed in */ subnetId?: pulumi.Input; /** * Build token. Can be used to signal to Foreman that a host build is complete. */ token?: pulumi.Input; } /** * The set of arguments for constructing a Host resource. */ export interface HostArgs { /** * ID of the architecture of this host */ architectureId?: pulumi.Input; /** * @deprecated The feature no longer exists */ bmcSuccess?: pulumi.Input; /** * Add additional information about this host.Note: Changes to this attribute will trigger a host rebuild. */ comment?: pulumi.Input; /** * Hypervisor specific VM options. Must be a JSON string, as every compute provider has different attributes schema */ computeAttributes?: pulumi.Input; computeProfileId?: pulumi.Input; computeResourceId?: pulumi.Input; /** * IDs of the applied config groups. */ configGroupIds?: pulumi.Input[]>; /** * ID of the domain to assign to the host. */ domainId?: pulumi.Input; /** * Enables PMI/BMC functionality. On create and update calls, having this enabled will force a host to poweroff, set next * boot to PXE and power on. Defaults to `false`. */ enableBmc?: pulumi.Input; /** * ID of the environment to assign to the host. */ environmentId?: pulumi.Input; /** * ID of the hostgroup to assign to the host. */ hostgroupId?: pulumi.Input; /** * ID of an image to be used as base for this host when cloning */ imageId?: pulumi.Input; /** * Host interface information. */ interfacesAttributes?: pulumi.Input[]>; /** * NAME of the location to assign to the host. */ locationName?: pulumi.Input; /** * Manage power operations, e.g. power on, if host's build flag will be enabled. */ managePowerOperations?: pulumi.Input; /** * Whether or not this host is managed by Foreman. Create host only, don't set build status or manage power states. */ managed?: pulumi.Input; /** * ID of the medium mounted on the host. */ mediumId?: pulumi.Input; /** * ID of the hardware model if applicable */ modelId?: pulumi.Input; /** * Name of this host as stored in Foreman. Can be short name or FQDN, depending on your Foreman settings (especially the * setting 'append_domain_name_for_hosts'). */ name?: pulumi.Input; /** * ID of the operating system to put on the host. */ operatingsystemId?: pulumi.Input; /** * NAME of the organization to assign to the host. */ organizationName?: pulumi.Input; /** * ID of the user or usergroup that owns the host. */ ownerId?: pulumi.Input; /** * Owner of the host, must be either User ot Usergroup */ ownerType?: pulumi.Input; /** * A map of parameters that will be saved as host parameters in the machine config. */ parameters?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Sets the provision method in Foreman for this host: either network-based ('build') or image-based ('image') */ provisionMethod?: pulumi.Input; /** * ID of the partition table the host should use */ ptableId?: pulumi.Input; /** * IDs of the applied puppet classes. */ puppetClassIds?: pulumi.Input[]>; /** * Number of times to retry on a failed attempt to register or delete a host in foreman. */ retryCount?: pulumi.Input; /** * Default root password */ rootPassword?: pulumi.Input; /** * Sets the Foreman-internal 'build' flag on this host - even if it is already built completely. */ setBuildFlag?: pulumi.Input; /** * The short name of this host. Example: when the FQDN is 'host01.example.org', then 'host01' is the short name. */ shortname?: pulumi.Input; /** * ID of the subnet the host should be placed in */ subnetId?: pulumi.Input; }