networking Package¶
networking
Package¶
Roles in this namespace are meant to provide networking management capabilities for centos distributions.
hosts
Module¶
Roles in this namespace are meant to provide hosts management operations for centos distributions.
-
class
provy.more.centos.networking.hosts.
HostsRole
(prov, context)[source]¶ Bases:
provy.more.linux.networking.hosts.HostsRole
This role provides hosts file management utilities for centos distributions.
This is just a class wrapper over
provy.more.linux.networking.hosts.HostsRole
Example:
from provy.core import Role from provy.more.centos import HostsRole class MySampleRole(Role): def provision(self): with self.using(HostsRole) as role: role.ensure_host('localhost', '127.0.0.1')