Sha256: f5d6e155f2ee9261a92e2bb8ba2ad831cbbf546c08a9d672625f617b72ba387a

Contents?: true

Size: 1.72 KB

Versions: 6

Compression:

Stored size: 1.72 KB

Contents

# Nodes



    Arborist::Host 'sidonie' do
    	parent 'duir'
    	description "NAS and media server"
    	address '192.168.16.3'
    
    	tags :infrastructure,
    	     :storage,
    	     :media,
    	     :rip_status_check
    
    	service 'ssh'
    	service 'demon-http', port: 6666, protocol: 'http'
    	service 'postgresql'
    
    	service 'smtp'
    
    	service 'http',
            depends_on: 'postgresql'
    	service 'sabnzbd', port: 8080, protocol: 'http'
    	service 'sickbeard', port: 8081, protocol: 'http'
    	service 'pms', port: 32400, protocol: 'http'
    	service 'couchpotato', port: 5050, protocol: 'http'
    end


    Arborist::Host 'jhereg' do
        parent 'duir'
        description "Directory server"
        address '192.168.16.7'
        
        service 'ldaps'
    end


    Arborist::Host 'webserver' do
    	description "Public webserver"
    	address '54.16.62.181'
    
        service 'http',
            depends_on: 'foo'
            depends_on: all_of( 'postgresql', 'daemon-http', on: 'sidonie' ),
                all_of( 'ldaps', on: 'jhereg' )
    end


An application server depends on one each of the 'http' services and 'ldaps' services
to be up.

    Arborist::Host 'appserver1' do
        description "Public application webserver"
        address '54.16.62.185'
        service 'http',
            depends_on: all_of(
                    any_of( 'http', on: %w[service1 service2 service3] ),
                    any_of( 'ldaps', on: %w[directory1 directory2] ),
                    all_of( 'else', on: 'something' )
                )
    end


[ :all_of,
    [ :any_of, 'service1-http', 'service2-http', 'service3-http' ],
    [ :any_of, 'directory1-ldaps', 'directory2-ldaps' ],
    'something-else'
]

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arborist-0.2.0.pre20170519125456 Nodes.md
arborist-0.1.0 Nodes.md
arborist-0.0.1.pre20161005182540 Nodes.md
arborist-0.0.1.pre20161005112841 Nodes.md
arborist-0.0.1.pre20160829140603 Nodes.md
arborist-0.0.1.pre20160606141735 Nodes.md