Resource Type: gcompute_network

Defined in:
lib/puppet/type/gcompute_network.rb
Providers:
google

Overview

Represents a Network resource. Your Cloud Platform Console project can contain multiple networks, and each network can have multiple instances attached to it. A network allows you to define a gateway IP and the network range for the instances attached to that network. Every project is provided with a default network with preset configurations and firewall rules. You can choose to customize the default network by adding or removing rules, or you can create new networks in that project. Generally, most users only need one network, although you can have up to five networks per project by default. A network belongs to only one project, and each instance can only belong to one network. All Compute Engine networks use the IPv4 protocol. Compute Engine currently does not support IPv6. However, Google is a major advocate of IPv6 and it is an important future direction.

Properties

  • auto_create_subnetworks

    When set to true, the network is created in “auto subnet mode”. When set to false, the network is in “custom subnet mode”. In “auto subnet mode”, a newly created network is assigned the default CIDR of 10.128.0.0/9 and it automatically creates one subnetwork per region.

    Supported values:
    • true
    • false
  • creation_timestamp

    Creation timestamp in RFC3339 text format. (output only)

  • description

    An optional description of this resource. Provide this property when you create the resource.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • gateway_ipv4

    A gateway address for default routing to other networks. This value is read only and is selected by the Google Compute Engine, typically as the first usable address in the IPv4Range.

  • id

    The unique identifier for the resource. (output only)

  • ipv4_range

    The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.

  • name (namevar)

    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

  • subnetworks

    Server-defined fully-qualified URLs for all subnetworks in this network. (output only)

Parameters

  • credential

    A gauth_credential name to be used to authenticate with Google Cloud Platform.

  • name

    The name of the Network.

  • project

    A Google Cloud Platform project to manage.

  • provider

    The specific backend to use for this ‘gcompute_network` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.