rule 发表于 2018-8-1 13:19:58

Puppet Host资源介绍(二十一)

# puppet describe host  
host
  
====
  
Installs and manages host entries.For most systems, these
  
entries will just be in `/etc/hosts`, but some systems (notably OS X)
  
will have different solutions.
  
Parameters
  
----------
  
- **comment**
  
    A comment that will be attached to the line with a # character.
  
- **ensure**
  
    The basic property that the resource should be in.
  
    Valid values are `present`, `absent`.
  
- **host_aliases**
  
    Any aliases the host might have.Multiple values must be
  
    specified as an array.
  
- **ip**
  
    The host's IP address, IPv4 or IPv6.
  
- **name**
  
    The host name.
  
- **target**
  
    The file in which to store service information.Only used by
  
    those providers that write to disk. On most systems this defaults to
  
    `/etc/hosts`.
  
Providers
  
---------
  
    parsed
页: [1]
查看完整版本: Puppet Host资源介绍(二十一)