Skip to content

Commit

Permalink
Check for required roles and list associated hosts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Massmann committed Dec 13, 2013
1 parent 797b714 commit 9f507ca
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/propertyshelf/fabfile/plone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
import client
import database
import frontend
import roles


client = client # PyFlakes
database = database # PyFlakes
frontend = frontend # PyFlakes
roles = roles


__all__ = [
'client',
'database',
'frontend',
'roles',
]
23 changes: 23 additions & 0 deletions src/propertyshelf/fabfile/plone/roles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
"""Manage chef roles."""

from fabric import api
from propertyshelf.fabfile.common import roles


@api.task
def check():
"""Check if the required roles are available."""
roles.check_required()


@api.task
def create_missing():
"""Create missing roles on the chef server."""
raise NotImplementedError


@api.task
def list_nodes(role_list=None):
"""List all available nodes with given roles."""
roles.list_nodes()

0 comments on commit 9f507ca

Please sign in to comment.