nexus.RepositoryYumGroup
Explore with Pulumi AI
Use this resource to create a group yum repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";
const internal = new nexus.RepositoryYumHosted("internal", {
deployPolicy: "STRICT",
repodataDepth: 4,
storage: {
blobStoreName: "default",
strictContentTypeValidation: true,
writePolicy: "ALLOW",
},
});
const group = new nexus.RepositoryYumGroup("group", {
online: true,
group: {
memberNames: [internal.name],
},
storage: {
blobStoreName: "default",
strictContentTypeValidation: true,
},
});
import pulumi
import pulumi_nexus as nexus
internal = nexus.RepositoryYumHosted("internal",
deploy_policy="STRICT",
repodata_depth=4,
storage={
"blob_store_name": "default",
"strict_content_type_validation": True,
"write_policy": "ALLOW",
})
group = nexus.RepositoryYumGroup("group",
online=True,
group={
"member_names": [internal.name],
},
storage={
"blob_store_name": "default",
"strict_content_type_validation": True,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
internal, err := nexus.NewRepositoryYumHosted(ctx, "internal", &nexus.RepositoryYumHostedArgs{
DeployPolicy: pulumi.String("STRICT"),
RepodataDepth: pulumi.Float64(4),
Storage: &nexus.RepositoryYumHostedStorageArgs{
BlobStoreName: pulumi.String("default"),
StrictContentTypeValidation: pulumi.Bool(true),
WritePolicy: pulumi.String("ALLOW"),
},
})
if err != nil {
return err
}
_, err = nexus.NewRepositoryYumGroup(ctx, "group", &nexus.RepositoryYumGroupArgs{
Online: pulumi.Bool(true),
Group: &nexus.RepositoryYumGroupGroupArgs{
MemberNames: pulumi.StringArray{
internal.Name,
},
},
Storage: &nexus.RepositoryYumGroupStorageArgs{
BlobStoreName: pulumi.String("default"),
StrictContentTypeValidation: pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nexus = Pulumi.Nexus;
return await Deployment.RunAsync(() =>
{
var @internal = new Nexus.RepositoryYumHosted("internal", new()
{
DeployPolicy = "STRICT",
RepodataDepth = 4,
Storage = new Nexus.Inputs.RepositoryYumHostedStorageArgs
{
BlobStoreName = "default",
StrictContentTypeValidation = true,
WritePolicy = "ALLOW",
},
});
var @group = new Nexus.RepositoryYumGroup("group", new()
{
Online = true,
Group = new Nexus.Inputs.RepositoryYumGroupGroupArgs
{
MemberNames = new[]
{
@internal.Name,
},
},
Storage = new Nexus.Inputs.RepositoryYumGroupStorageArgs
{
BlobStoreName = "default",
StrictContentTypeValidation = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nexus.RepositoryYumHosted;
import com.pulumi.nexus.RepositoryYumHostedArgs;
import com.pulumi.nexus.inputs.RepositoryYumHostedStorageArgs;
import com.pulumi.nexus.RepositoryYumGroup;
import com.pulumi.nexus.RepositoryYumGroupArgs;
import com.pulumi.nexus.inputs.RepositoryYumGroupGroupArgs;
import com.pulumi.nexus.inputs.RepositoryYumGroupStorageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var internal = new RepositoryYumHosted("internal", RepositoryYumHostedArgs.builder()
.deployPolicy("STRICT")
.repodataDepth(4)
.storage(RepositoryYumHostedStorageArgs.builder()
.blobStoreName("default")
.strictContentTypeValidation(true)
.writePolicy("ALLOW")
.build())
.build());
var group = new RepositoryYumGroup("group", RepositoryYumGroupArgs.builder()
.online(true)
.group(RepositoryYumGroupGroupArgs.builder()
.memberNames(internal.name())
.build())
.storage(RepositoryYumGroupStorageArgs.builder()
.blobStoreName("default")
.strictContentTypeValidation(true)
.build())
.build());
}
}
resources:
internal:
type: nexus:RepositoryYumHosted
properties:
deployPolicy: STRICT
repodataDepth: 4
storage:
blobStoreName: default
strictContentTypeValidation: true
writePolicy: ALLOW
group:
type: nexus:RepositoryYumGroup
properties:
online: true
group:
memberNames:
- ${internal.name}
storage:
blobStoreName: default
strictContentTypeValidation: true
Create RepositoryYumGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryYumGroup(name: string, args: RepositoryYumGroupArgs, opts?: CustomResourceOptions);
@overload
def RepositoryYumGroup(resource_name: str,
args: RepositoryYumGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RepositoryYumGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
group: Optional[RepositoryYumGroupGroupArgs] = None,
storage: Optional[RepositoryYumGroupStorageArgs] = None,
name: Optional[str] = None,
online: Optional[bool] = None,
yum_signing: Optional[RepositoryYumGroupYumSigningArgs] = None)
func NewRepositoryYumGroup(ctx *Context, name string, args RepositoryYumGroupArgs, opts ...ResourceOption) (*RepositoryYumGroup, error)
public RepositoryYumGroup(string name, RepositoryYumGroupArgs args, CustomResourceOptions? opts = null)
public RepositoryYumGroup(String name, RepositoryYumGroupArgs args)
public RepositoryYumGroup(String name, RepositoryYumGroupArgs args, CustomResourceOptions options)
type: nexus:RepositoryYumGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RepositoryYumGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RepositoryYumGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryYumGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryYumGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryYumGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var repositoryYumGroupResource = new Nexus.RepositoryYumGroup("repositoryYumGroupResource", new()
{
Group = new Nexus.Inputs.RepositoryYumGroupGroupArgs
{
MemberNames = new[]
{
"string",
},
},
Storage = new Nexus.Inputs.RepositoryYumGroupStorageArgs
{
BlobStoreName = "string",
StrictContentTypeValidation = false,
},
Name = "string",
Online = false,
YumSigning = new Nexus.Inputs.RepositoryYumGroupYumSigningArgs
{
Keypair = "string",
Passphrase = "string",
},
});
example, err := nexus.NewRepositoryYumGroup(ctx, "repositoryYumGroupResource", &nexus.RepositoryYumGroupArgs{
Group: &nexus.RepositoryYumGroupGroupArgs{
MemberNames: pulumi.StringArray{
pulumi.String("string"),
},
},
Storage: &nexus.RepositoryYumGroupStorageArgs{
BlobStoreName: pulumi.String("string"),
StrictContentTypeValidation: pulumi.Bool(false),
},
Name: pulumi.String("string"),
Online: pulumi.Bool(false),
YumSigning: &nexus.RepositoryYumGroupYumSigningArgs{
Keypair: pulumi.String("string"),
Passphrase: pulumi.String("string"),
},
})
var repositoryYumGroupResource = new RepositoryYumGroup("repositoryYumGroupResource", RepositoryYumGroupArgs.builder()
.group(RepositoryYumGroupGroupArgs.builder()
.memberNames("string")
.build())
.storage(RepositoryYumGroupStorageArgs.builder()
.blobStoreName("string")
.strictContentTypeValidation(false)
.build())
.name("string")
.online(false)
.yumSigning(RepositoryYumGroupYumSigningArgs.builder()
.keypair("string")
.passphrase("string")
.build())
.build());
repository_yum_group_resource = nexus.RepositoryYumGroup("repositoryYumGroupResource",
group={
"member_names": ["string"],
},
storage={
"blob_store_name": "string",
"strict_content_type_validation": False,
},
name="string",
online=False,
yum_signing={
"keypair": "string",
"passphrase": "string",
})
const repositoryYumGroupResource = new nexus.RepositoryYumGroup("repositoryYumGroupResource", {
group: {
memberNames: ["string"],
},
storage: {
blobStoreName: "string",
strictContentTypeValidation: false,
},
name: "string",
online: false,
yumSigning: {
keypair: "string",
passphrase: "string",
},
});
type: nexus:RepositoryYumGroup
properties:
group:
memberNames:
- string
name: string
online: false
storage:
blobStoreName: string
strictContentTypeValidation: false
yumSigning:
keypair: string
passphrase: string
RepositoryYumGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RepositoryYumGroup resource accepts the following input properties:
- Group
Repository
Yum Group Group - Configuration for repository group
- Storage
Repository
Yum Group Storage - The storage configuration of the repository
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Yum
Signing RepositoryYum Group Yum Signing - Contains signing data of repositores
- Group
Repository
Yum Group Group Args - Configuration for repository group
- Storage
Repository
Yum Group Storage Args - The storage configuration of the repository
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Yum
Signing RepositoryYum Group Yum Signing Args - Contains signing data of repositores
- group
Repository
Yum Group Group - Configuration for repository group
- storage
Repository
Yum Group Storage - The storage configuration of the repository
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- yum
Signing RepositoryYum Group Yum Signing - Contains signing data of repositores
- group
Repository
Yum Group Group - Configuration for repository group
- storage
Repository
Yum Group Storage - The storage configuration of the repository
- name string
- A unique identifier for this repository
- online boolean
- Whether this repository accepts incoming requests
- yum
Signing RepositoryYum Group Yum Signing - Contains signing data of repositores
- group
Repository
Yum Group Group Args - Configuration for repository group
- storage
Repository
Yum Group Storage Args - The storage configuration of the repository
- name str
- A unique identifier for this repository
- online bool
- Whether this repository accepts incoming requests
- yum_
signing RepositoryYum Group Yum Signing Args - Contains signing data of repositores
- group Property Map
- Configuration for repository group
- storage Property Map
- The storage configuration of the repository
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- yum
Signing Property Map - Contains signing data of repositores
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryYumGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RepositoryYumGroup Resource
Get an existing RepositoryYumGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RepositoryYumGroupState, opts?: CustomResourceOptions): RepositoryYumGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
group: Optional[RepositoryYumGroupGroupArgs] = None,
name: Optional[str] = None,
online: Optional[bool] = None,
storage: Optional[RepositoryYumGroupStorageArgs] = None,
yum_signing: Optional[RepositoryYumGroupYumSigningArgs] = None) -> RepositoryYumGroup
func GetRepositoryYumGroup(ctx *Context, name string, id IDInput, state *RepositoryYumGroupState, opts ...ResourceOption) (*RepositoryYumGroup, error)
public static RepositoryYumGroup Get(string name, Input<string> id, RepositoryYumGroupState? state, CustomResourceOptions? opts = null)
public static RepositoryYumGroup get(String name, Output<String> id, RepositoryYumGroupState state, CustomResourceOptions options)
resources: _: type: nexus:RepositoryYumGroup get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Group
Repository
Yum Group Group - Configuration for repository group
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Storage
Repository
Yum Group Storage - The storage configuration of the repository
- Yum
Signing RepositoryYum Group Yum Signing - Contains signing data of repositores
- Group
Repository
Yum Group Group Args - Configuration for repository group
- Name string
- A unique identifier for this repository
- Online bool
- Whether this repository accepts incoming requests
- Storage
Repository
Yum Group Storage Args - The storage configuration of the repository
- Yum
Signing RepositoryYum Group Yum Signing Args - Contains signing data of repositores
- group
Repository
Yum Group Group - Configuration for repository group
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- storage
Repository
Yum Group Storage - The storage configuration of the repository
- yum
Signing RepositoryYum Group Yum Signing - Contains signing data of repositores
- group
Repository
Yum Group Group - Configuration for repository group
- name string
- A unique identifier for this repository
- online boolean
- Whether this repository accepts incoming requests
- storage
Repository
Yum Group Storage - The storage configuration of the repository
- yum
Signing RepositoryYum Group Yum Signing - Contains signing data of repositores
- group
Repository
Yum Group Group Args - Configuration for repository group
- name str
- A unique identifier for this repository
- online bool
- Whether this repository accepts incoming requests
- storage
Repository
Yum Group Storage Args - The storage configuration of the repository
- yum_
signing RepositoryYum Group Yum Signing Args - Contains signing data of repositores
- group Property Map
- Configuration for repository group
- name String
- A unique identifier for this repository
- online Boolean
- Whether this repository accepts incoming requests
- storage Property Map
- The storage configuration of the repository
- yum
Signing Property Map - Contains signing data of repositores
Supporting Types
RepositoryYumGroupGroup, RepositoryYumGroupGroupArgs
- Member
Names List<string> - Member repositories names
- Member
Names []string - Member repositories names
- member
Names List<String> - Member repositories names
- member
Names string[] - Member repositories names
- member_
names Sequence[str] - Member repositories names
- member
Names List<String> - Member repositories names
RepositoryYumGroupStorage, RepositoryYumGroupStorageArgs
- Blob
Store stringName - Blob store used to store repository contents
- Strict
Content boolType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- Blob
Store stringName - Blob store used to store repository contents
- Strict
Content boolType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob
Store StringName - Blob store used to store repository contents
- strict
Content BooleanType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob
Store stringName - Blob store used to store repository contents
- strict
Content booleanType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob_
store_ strname - Blob store used to store repository contents
- strict_
content_ booltype_ validation - Whether to validate uploaded content's MIME type appropriate for the repository format
- blob
Store StringName - Blob store used to store repository contents
- strict
Content BooleanType Validation - Whether to validate uploaded content's MIME type appropriate for the repository format
RepositoryYumGroupYumSigning, RepositoryYumGroupYumSigningArgs
- Keypair string
- PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
- Passphrase string
- Passphrase to access PGP signing key
- Keypair string
- PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
- Passphrase string
- Passphrase to access PGP signing key
- keypair String
- PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
- passphrase String
- Passphrase to access PGP signing key
- keypair string
- PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
- passphrase string
- Passphrase to access PGP signing key
- keypair str
- PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
- passphrase str
- Passphrase to access PGP signing key
- keypair String
- PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
- passphrase String
- Passphrase to access PGP signing key
Import
import using the name of repository
$ pulumi import nexus:index/repositoryYumGroup:RepositoryYumGroup group yum-group
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- nexus datadrivers/terraform-provider-nexus
- License
- Notes
- This Pulumi package is based on the
nexus
Terraform Provider.