partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
verify_fun
Check that the function passed really exists
salt/utils/lazy.py
def verify_fun(lazy_obj, fun): ''' Check that the function passed really exists ''' if not fun: raise salt.exceptions.SaltInvocationError( 'Must specify a function to run!\n' 'ex: manage.up' ) if fun not in lazy_obj: # If the requested function isn't a...
def verify_fun(lazy_obj, fun): ''' Check that the function passed really exists ''' if not fun: raise salt.exceptions.SaltInvocationError( 'Must specify a function to run!\n' 'ex: manage.up' ) if fun not in lazy_obj: # If the requested function isn't a...
[ "Check", "that", "the", "function", "passed", "really", "exists" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/lazy.py#L19-L30
[ "def", "verify_fun", "(", "lazy_obj", ",", "fun", ")", ":", "if", "not", "fun", ":", "raise", "salt", ".", "exceptions", ".", "SaltInvocationError", "(", "'Must specify a function to run!\\n'", "'ex: manage.up'", ")", "if", "fun", "not", "in", "lazy_obj", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
LazyDict.clear
Clear the dict
salt/utils/lazy.py
def clear(self): ''' Clear the dict ''' # create a dict to store loaded values in self._dict = getattr(self, 'mod_dict_class', dict)() # have we already loded everything? self.loaded = False
def clear(self): ''' Clear the dict ''' # create a dict to store loaded values in self._dict = getattr(self, 'mod_dict_class', dict)() # have we already loded everything? self.loaded = False
[ "Clear", "the", "dict" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/utils/lazy.py#L52-L60
[ "def", "clear", "(", "self", ")", ":", "# create a dict to store loaded values in", "self", ".", "_dict", "=", "getattr", "(", "self", ",", "'mod_dict_class'", ",", "dict", ")", "(", ")", "# have we already loded everything?", "self", ".", "loaded", "=", "False" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
train
instance_profile_exists
Check to see if an instance profile exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile
salt/modules/boto_iam.py
def instance_profile_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if an instance profile exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=regio...
def instance_profile_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if an instance profile exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=regio...
[ "Check", "to", "see", "if", "an", "instance", "profile", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L86-L105
[ "def", "instance_profile_exists", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
role_exists
Check to see if an IAM role exists. CLI Example: .. code-block:: bash salt myminion boto_iam.role_exists myirole
salt/modules/boto_iam.py
def role_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if an IAM role exists. CLI Example: .. code-block:: bash salt myminion boto_iam.role_exists myirole ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: conn...
def role_exists(name, region=None, key=None, keyid=None, profile=None): ''' Check to see if an IAM role exists. CLI Example: .. code-block:: bash salt myminion boto_iam.role_exists myirole ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: conn...
[ "Check", "to", "see", "if", "an", "IAM", "role", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L160-L175
[ "def", "role_exists", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
describe_role
Get information for a role. CLI Example: .. code-block:: bash salt myminion boto_iam.describe_role myirole
salt/modules/boto_iam.py
def describe_role(name, region=None, key=None, keyid=None, profile=None): ''' Get information for a role. CLI Example: .. code-block:: bash salt myminion boto_iam.describe_role myirole ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: info = c...
def describe_role(name, region=None, key=None, keyid=None, profile=None): ''' Get information for a role. CLI Example: .. code-block:: bash salt myminion boto_iam.describe_role myirole ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: info = c...
[ "Get", "information", "for", "a", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L178-L209
[ "def", "describe_role", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_user
Create a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.create_user myuser
salt/modules/boto_iam.py
def create_user(user_name, path=None, region=None, key=None, keyid=None, profile=None): ''' Create a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.create_user myuser ''' if not path: path = '/' if get_user(us...
def create_user(user_name, path=None, region=None, key=None, keyid=None, profile=None): ''' Create a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.create_user myuser ''' if not path: path = '/' if get_user(us...
[ "Create", "a", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L212-L237
[ "def", "create_user", "(", "user_name", ",", "path", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "if", "not", "path", ":", "path", "=", "'/'", "if", "get_user",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_access_keys
Get all access keys from a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_access_keys myuser
salt/modules/boto_iam.py
def get_all_access_keys(user_name, marker=None, max_items=None, region=None, key=None, keyid=None, profile=None): ''' Get all access keys from a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_access_keys myuser ...
def get_all_access_keys(user_name, marker=None, max_items=None, region=None, key=None, keyid=None, profile=None): ''' Get all access keys from a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_access_keys myuser ...
[ "Get", "all", "access", "keys", "from", "a", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L240-L259
[ "def", "get_all_access_keys", "(", "user_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_user
Delete a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.delete_user myuser
salt/modules/boto_iam.py
def delete_user(user_name, region=None, key=None, keyid=None, profile=None): ''' Delete a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.delete_user myuser ''' if not get_user(user_name, region, key, keyid, profile): ...
def delete_user(user_name, region=None, key=None, keyid=None, profile=None): ''' Delete a user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.delete_user myuser ''' if not get_user(user_name, region, key, keyid, profile): ...
[ "Delete", "a", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L305-L328
[ "def", "delete_user", "(", "user_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "if", "not", "get_user", "(", "user_name", ",", "region", ",", "key", ",", "keyid", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_user
Get user information. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_user myuser
salt/modules/boto_iam.py
def get_user(user_name=None, region=None, key=None, keyid=None, profile=None): ''' Get user information. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_user myuser ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def get_user(user_name=None, region=None, key=None, keyid=None, profile=None): ''' Get user information. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_user myuser ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "Get", "user", "information", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L331-L352
[ "def", "get_user", "(", "user_name", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_group
Get group information. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group mygroup
salt/modules/boto_iam.py
def get_group(group_name, region=None, key=None, keyid=None, profile=None): ''' Get group information. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group mygroup ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def get_group(group_name, region=None, key=None, keyid=None, profile=None): ''' Get group information. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group mygroup ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "Get", "group", "information", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L384-L405
[ "def", "get_group", "(", "group_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyi...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_group_members
Get group information. .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group mygroup
salt/modules/boto_iam.py
def get_group_members(group_name, region=None, key=None, keyid=None, profile=None): ''' Get group information. .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group mygroup ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=p...
def get_group_members(group_name, region=None, key=None, keyid=None, profile=None): ''' Get group information. .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group mygroup ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=p...
[ "Get", "group", "information", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L408-L440
[ "def", "get_group_members", "(", "group_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
add_user_to_group
Add user to group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.add_user_to_group myuser mygroup
salt/modules/boto_iam.py
def add_user_to_group(user_name, group_name, region=None, key=None, keyid=None, profile=None): ''' Add user to group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.add_user_to_group myuser mygroup ''' user = get_user(use...
def add_user_to_group(user_name, group_name, region=None, key=None, keyid=None, profile=None): ''' Add user to group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.add_user_to_group myuser mygroup ''' user = get_user(use...
[ "Add", "user", "to", "group", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L443-L472
[ "def", "add_user_to_group", "(", "user_name", ",", "group_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "user", "=", "get_user", "(", "user_name", ",", "region", ",", "key"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
user_exists_in_group
Check if user exists in group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.user_exists_in_group myuser mygroup
salt/modules/boto_iam.py
def user_exists_in_group(user_name, group_name, region=None, key=None, keyid=None, profile=None): ''' Check if user exists in group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.user_exists_in_group myuser mygroup ''' ...
def user_exists_in_group(user_name, group_name, region=None, key=None, keyid=None, profile=None): ''' Check if user exists in group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.user_exists_in_group myuser mygroup ''' ...
[ "Check", "if", "user", "exists", "in", "group", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L475-L498
[ "def", "user_exists_in_group", "(", "user_name", ",", "group_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "# TODO this should probably use boto.iam.get_groups_for_user", "users", "=",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
put_group_policy
Adds or updates the specified policy document for the specified group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.put_group_policy mygroup policyname policyrules
salt/modules/boto_iam.py
def put_group_policy(group_name, policy_name, policy_json, region=None, key=None, keyid=None, profile=None): ''' Adds or updates the specified policy document for the specified group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam...
def put_group_policy(group_name, policy_name, policy_json, region=None, key=None, keyid=None, profile=None): ''' Adds or updates the specified policy document for the specified group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam...
[ "Adds", "or", "updates", "the", "specified", "policy", "document", "for", "the", "specified", "group", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L533-L564
[ "def", "put_group_policy", "(", "group_name", ",", "policy_name", ",", "policy_json", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "group", "=", "get_group", "(", "group_name", ","...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_group_policy
Delete a group policy. CLI Example:: .. code-block:: bash salt myminion boto_iam.delete_group_policy mygroup mypolicy
salt/modules/boto_iam.py
def delete_group_policy(group_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Delete a group policy. CLI Example:: .. code-block:: bash salt myminion boto_iam.delete_group_policy mygroup mypolicy ''' conn = _get_conn(region=region, key=...
def delete_group_policy(group_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Delete a group policy. CLI Example:: .. code-block:: bash salt myminion boto_iam.delete_group_policy mygroup mypolicy ''' conn = _get_conn(region=region, key=...
[ "Delete", "a", "group", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L567-L593
[ "def", "delete_group_policy", "(", "group_name", ",", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "ke...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_group_policy
Retrieves the specified policy document for the specified group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group_policy mygroup policyname
salt/modules/boto_iam.py
def get_group_policy(group_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Retrieves the specified policy document for the specified group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group_policy m...
def get_group_policy(group_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Retrieves the specified policy document for the specified group. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_group_policy m...
[ "Retrieves", "the", "specified", "policy", "document", "for", "the", "specified", "group", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L596-L622
[ "def", "get_group_policy", "(", "group_name", ",", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_groups
Get and return all IAM group details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_groups
salt/modules/boto_iam.py
def get_all_groups(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM group details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_groups ''' conn = _get_conn(region=region,...
def get_all_groups(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM group details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_groups ''' conn = _get_conn(region=region,...
[ "Get", "and", "return", "all", "IAM", "group", "details", "starting", "at", "the", "optional", "path", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L625-L650
[ "def", "get_all_groups", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_instance_profiles
Get and return all IAM instance profiles, starting at the optional path. .. versionadded:: 2016.11.0 CLI Example: salt-call boto_iam.get_all_instance_profiles
salt/modules/boto_iam.py
def get_all_instance_profiles(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM instance profiles, starting at the optional path. .. versionadded:: 2016.11.0 CLI Example: salt-call boto_iam.get_all_instance_profiles ...
def get_all_instance_profiles(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM instance profiles, starting at the optional path. .. versionadded:: 2016.11.0 CLI Example: salt-call boto_iam.get_all_instance_profiles ...
[ "Get", "and", "return", "all", "IAM", "instance", "profiles", "starting", "at", "the", "optional", "path", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L653-L674
[ "def", "get_all_instance_profiles", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_instance_profiles
List all IAM instance profiles, starting at the optional path. .. versionadded:: 2016.11.0 CLI Example: salt-call boto_iam.list_instance_profiles
salt/modules/boto_iam.py
def list_instance_profiles(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' List all IAM instance profiles, starting at the optional path. .. versionadded:: 2016.11.0 CLI Example: salt-call boto_iam.list_instance_profiles ''' p = get_al...
def list_instance_profiles(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' List all IAM instance profiles, starting at the optional path. .. versionadded:: 2016.11.0 CLI Example: salt-call boto_iam.list_instance_profiles ''' p = get_al...
[ "List", "all", "IAM", "instance", "profiles", "starting", "at", "the", "optional", "path", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L677-L689
[ "def", "list_instance_profiles", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "p", "=", "get_all_instance_profiles", "(", "path_prefix", ",", "region"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_group_policies
Get a list of policy names from a group. CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_group_policies mygroup
salt/modules/boto_iam.py
def get_all_group_policies(group_name, region=None, key=None, keyid=None, profile=None): ''' Get a list of policy names from a group. CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_group_policies mygroup ''' conn = _get_conn(region=region, ...
def get_all_group_policies(group_name, region=None, key=None, keyid=None, profile=None): ''' Get a list of policy names from a group. CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_group_policies mygroup ''' conn = _get_conn(region=region, ...
[ "Get", "a", "list", "of", "policy", "names", "from", "a", "group", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L692-L712
[ "def", "get_all_group_policies", "(", "group_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_group
Delete a group policy. CLI Example:: .. code-block:: bash salt myminion boto_iam.delete_group mygroup
salt/modules/boto_iam.py
def delete_group(group_name, region=None, key=None, keyid=None, profile=None): ''' Delete a group policy. CLI Example:: .. code-block:: bash salt myminion boto_iam.delete_group mygroup ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def delete_group(group_name, region=None, key=None, keyid=None, profile=None): ''' Delete a group policy. CLI Example:: .. code-block:: bash salt myminion boto_iam.delete_group mygroup ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "Delete", "a", "group", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L715-L741
[ "def", "delete_group", "(", "group_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "k...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_login_profile
Creates a login profile for the specified user, give the user the ability to access AWS services and the AWS Management Console. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.create_login_profile user_name password
salt/modules/boto_iam.py
def create_login_profile(user_name, password, region=None, key=None, keyid=None, profile=None): ''' Creates a login profile for the specified user, give the user the ability to access AWS services and the AWS Management Console. .. versionadded:: 2015.8.0 CLI Example: ...
def create_login_profile(user_name, password, region=None, key=None, keyid=None, profile=None): ''' Creates a login profile for the specified user, give the user the ability to access AWS services and the AWS Management Console. .. versionadded:: 2015.8.0 CLI Example: ...
[ "Creates", "a", "login", "profile", "for", "the", "specified", "user", "give", "the", "user", "the", "ability", "to", "access", "AWS", "services", "and", "the", "AWS", "Management", "Console", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L744-L773
[ "def", "create_login_profile", "(", "user_name", ",", "password", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "user", "=", "get_user", "(", "user_name", ",", "region", ",", "key...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_mfa_devices
Get all MFA devices associated with an IAM user. .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_mfa_devices user_name
salt/modules/boto_iam.py
def get_all_mfa_devices(user_name, region=None, key=None, keyid=None, profile=None): ''' Get all MFA devices associated with an IAM user. .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_mfa_devices user_name ''' ...
def get_all_mfa_devices(user_name, region=None, key=None, keyid=None, profile=None): ''' Get all MFA devices associated with an IAM user. .. versionadded:: 2016.3.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_mfa_devices user_name ''' ...
[ "Get", "all", "MFA", "devices", "associated", "with", "an", "IAM", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L807-L835
[ "def", "get_all_mfa_devices", "(", "user_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "user", "=", "get_user", "(", "user_name", ",", "region", ",", "key", ",", "keyid", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_virtual_mfa_device
Deletes the specified virtual MFA device. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_virtual_mfa_device serial_num
salt/modules/boto_iam.py
def delete_virtual_mfa_device(serial, region=None, key=None, keyid=None, profile=None): ''' Deletes the specified virtual MFA device. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_virtual_mfa_device serial_num ''' conn = __utils__['boto3.get_connection_func']('iam')(...
def delete_virtual_mfa_device(serial, region=None, key=None, keyid=None, profile=None): ''' Deletes the specified virtual MFA device. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_virtual_mfa_device serial_num ''' conn = __utils__['boto3.get_connection_func']('iam')(...
[ "Deletes", "the", "specified", "virtual", "MFA", "device", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L870-L891
[ "def", "delete_virtual_mfa_device", "(", "serial", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "__utils__", "[", "'boto3.get_connection_func'", "]", "(", "'iam'", ")", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
update_account_password_policy
Update the password policy for the AWS account. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.update_account_password_policy True
salt/modules/boto_iam.py
def update_account_password_policy(allow_users_to_change_password=None, hard_expiry=None, max_password_age=None, minimum_password_length=None, password_reuse_prevention=None, requi...
def update_account_password_policy(allow_users_to_change_password=None, hard_expiry=None, max_password_age=None, minimum_password_length=None, password_reuse_prevention=None, requi...
[ "Update", "the", "password", "policy", "for", "the", "AWS", "account", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L894-L929
[ "def", "update_account_password_policy", "(", "allow_users_to_change_password", "=", "None", ",", "hard_expiry", "=", "None", ",", "max_password_age", "=", "None", ",", "minimum_password_length", "=", "None", ",", "password_reuse_prevention", "=", "None", ",", "require_...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_account_policy
Get account policy for the AWS account. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_account_policy
salt/modules/boto_iam.py
def get_account_policy(region=None, key=None, keyid=None, profile=None): ''' Get account policy for the AWS account. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_account_policy ''' conn = _get_conn(region=region, key=key, keyid=keyid, pr...
def get_account_policy(region=None, key=None, keyid=None, profile=None): ''' Get account policy for the AWS account. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_account_policy ''' conn = _get_conn(region=region, key=key, keyid=keyid, pr...
[ "Get", "account", "policy", "for", "the", "AWS", "account", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L932-L952
[ "def", "get_account_policy", "(", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", "=", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_role
Create an instance role. CLI Example: .. code-block:: bash salt myminion boto_iam.create_role myrole
salt/modules/boto_iam.py
def create_role(name, policy_document=None, path=None, region=None, key=None, keyid=None, profile=None): ''' Create an instance role. CLI Example: .. code-block:: bash salt myminion boto_iam.create_role myrole ''' conn = _get_conn(region=region, key=key, keyid=keyid, p...
def create_role(name, policy_document=None, path=None, region=None, key=None, keyid=None, profile=None): ''' Create an instance role. CLI Example: .. code-block:: bash salt myminion boto_iam.create_role myrole ''' conn = _get_conn(region=region, key=key, keyid=keyid, p...
[ "Create", "an", "instance", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L955-L980
[ "def", "create_role", "(", "name", ",", "policy_document", "=", "None", ",", "path", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_role
Delete an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_role myirole
salt/modules/boto_iam.py
def delete_role(name, region=None, key=None, keyid=None, profile=None): ''' Delete an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_role myirole ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) if not role_exists(name, region,...
def delete_role(name, region=None, key=None, keyid=None, profile=None): ''' Delete an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_role myirole ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) if not role_exists(name, region,...
[ "Delete", "an", "IAM", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L983-L1004
[ "def", "delete_role", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
profile_associated
Check to see if an instance profile is associated with an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.profile_associated myirole myiprofile
salt/modules/boto_iam.py
def profile_associated(role_name, profile_name, region, key, keyid, profile): ''' Check to see if an instance profile is associated with an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.profile_associated myirole myiprofile ''' conn = _get_conn(region=region, key=...
def profile_associated(role_name, profile_name, region, key, keyid, profile): ''' Check to see if an instance profile is associated with an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.profile_associated myirole myiprofile ''' conn = _get_conn(region=region, key=...
[ "Check", "to", "see", "if", "an", "instance", "profile", "is", "associated", "with", "an", "IAM", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1007-L1032
[ "def", "profile_associated", "(", "role_name", ",", "profile_name", ",", "region", ",", "key", ",", "keyid", ",", "profile", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", "=", "keyid", ",", "pro...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
associate_profile_to_role
Associate an instance profile with an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.associate_profile_to_role myirole myiprofile
salt/modules/boto_iam.py
def associate_profile_to_role(profile_name, role_name, region=None, key=None, keyid=None, profile=None): ''' Associate an instance profile with an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.associate_profile_to_role myirole myiprofile ...
def associate_profile_to_role(profile_name, role_name, region=None, key=None, keyid=None, profile=None): ''' Associate an instance profile with an IAM role. CLI Example: .. code-block:: bash salt myminion boto_iam.associate_profile_to_role myirole myiprofile ...
[ "Associate", "an", "instance", "profile", "with", "an", "IAM", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1035-L1065
[ "def", "associate_profile_to_role", "(", "profile_name", ",", "role_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_role_policies
Get a list of policy names from a role. CLI Example: .. code-block:: bash salt myminion boto_iam.list_role_policies myirole
salt/modules/boto_iam.py
def list_role_policies(role_name, region=None, key=None, keyid=None, profile=None): ''' Get a list of policy names from a role. CLI Example: .. code-block:: bash salt myminion boto_iam.list_role_policies myirole ''' conn = _get_conn(region=region, key=key, keyid...
def list_role_policies(role_name, region=None, key=None, keyid=None, profile=None): ''' Get a list of policy names from a role. CLI Example: .. code-block:: bash salt myminion boto_iam.list_role_policies myirole ''' conn = _get_conn(region=region, key=key, keyid...
[ "Get", "a", "list", "of", "policy", "names", "from", "a", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1101-L1120
[ "def", "list_role_policies", "(", "role_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_role_policy
Get a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.get_role_policy myirole mypolicy
salt/modules/boto_iam.py
def get_role_policy(role_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Get a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.get_role_policy myirole mypolicy ''' conn = _get_conn(region=region, key=key, keyid=keyid, ...
def get_role_policy(role_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Get a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.get_role_policy myirole mypolicy ''' conn = _get_conn(region=region, key=key, keyid=keyid, ...
[ "Get", "a", "role", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1123-L1145
[ "def", "get_role_policy", "(", "role_name", ",", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_role_policy
Create or modify a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.create_role_policy myirole mypolicy '{"MyPolicy": "Statement": [{"Action": ["sqs:*"], "Effect": "Allow", "Resource": ["arn:aws:sqs:*:*:*"], "Sid": "MyPolicySqs1"}]}'
salt/modules/boto_iam.py
def create_role_policy(role_name, policy_name, policy, region=None, key=None, keyid=None, profile=None): ''' Create or modify a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.create_role_policy myirole mypolicy '{"MyPolicy": "Statement": [{"Action...
def create_role_policy(role_name, policy_name, policy, region=None, key=None, keyid=None, profile=None): ''' Create or modify a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.create_role_policy myirole mypolicy '{"MyPolicy": "Statement": [{"Action...
[ "Create", "or", "modify", "a", "role", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1148-L1182
[ "def", "create_role_policy", "(", "role_name", ",", "policy_name", ",", "policy", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "regi...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_role_policy
Delete a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_role_policy myirole mypolicy
salt/modules/boto_iam.py
def delete_role_policy(role_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Delete a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_role_policy myirole mypolicy ''' conn = _get_conn(region=region, key=key, k...
def delete_role_policy(role_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Delete a role policy. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_role_policy myirole mypolicy ''' conn = _get_conn(region=region, key=key, k...
[ "Delete", "a", "role", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1185-L1210
[ "def", "delete_role_policy", "(", "role_name", ",", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
update_assume_role_policy
Update an assume role policy for a role. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.update_assume_role_policy myrole '{"Statement":"..."}'
salt/modules/boto_iam.py
def update_assume_role_policy(role_name, policy_document, region=None, key=None, keyid=None, profile=None): ''' Update an assume role policy for a role. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.update_assume_role_po...
def update_assume_role_policy(role_name, policy_document, region=None, key=None, keyid=None, profile=None): ''' Update an assume role policy for a role. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.update_assume_role_po...
[ "Update", "an", "assume", "role", "policy", "for", "a", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1213-L1239
[ "def", "update_assume_role_policy", "(", "role_name", ",", "policy_document", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
build_policy
Build a default assume role policy. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.build_policy
salt/modules/boto_iam.py
def build_policy(region=None, key=None, keyid=None, profile=None): ''' Build a default assume role policy. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.build_policy ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def build_policy(region=None, key=None, keyid=None, profile=None): ''' Build a default assume role policy. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.build_policy ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "Build", "a", "default", "assume", "role", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1242-L1275
[ "def", "build_policy", "(", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", "=", "keyid"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_account_id
Get a the AWS account id associated with the used credentials. CLI Example: .. code-block:: bash salt myminion boto_iam.get_account_id
salt/modules/boto_iam.py
def get_account_id(region=None, key=None, keyid=None, profile=None): ''' Get a the AWS account id associated with the used credentials. CLI Example: .. code-block:: bash salt myminion boto_iam.get_account_id ''' cache_key = 'boto_iam.account_id' if cache_key not in __context__: ...
def get_account_id(region=None, key=None, keyid=None, profile=None): ''' Get a the AWS account id associated with the used credentials. CLI Example: .. code-block:: bash salt myminion boto_iam.get_account_id ''' cache_key = 'boto_iam.account_id' if cache_key not in __context__: ...
[ "Get", "a", "the", "AWS", "account", "id", "associated", "with", "the", "used", "credentials", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1278-L1314
[ "def", "get_account_id", "(", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "cache_key", "=", "'boto_iam.account_id'", "if", "cache_key", "not", "in", "__context__", ":", "conn", "=", "_...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_roles
Get and return all IAM role details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_roles
salt/modules/boto_iam.py
def get_all_roles(path_prefix=None, region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM role details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_roles ''' conn = _get_conn(region=region, k...
def get_all_roles(path_prefix=None, region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM role details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_roles ''' conn = _get_conn(region=region, k...
[ "Get", "and", "return", "all", "IAM", "role", "details", "starting", "at", "the", "optional", "path", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1317-L1342
[ "def", "get_all_roles", "(", "path_prefix", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_users
Get and return all IAM user details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_users
salt/modules/boto_iam.py
def get_all_users(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM user details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_users ''' conn = _get_conn(region=region, ke...
def get_all_users(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get and return all IAM user details, starting at the optional path. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.get_all_users ''' conn = _get_conn(region=region, ke...
[ "Get", "and", "return", "all", "IAM", "user", "details", "starting", "at", "the", "optional", "path", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1345-L1370
[ "def", "get_all_users", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_all_user_policies
Get all user policies. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_user_policies myuser
salt/modules/boto_iam.py
def get_all_user_policies(user_name, marker=None, max_items=None, region=None, key=None, keyid=None, profile=None): ''' Get all user policies. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_user_policies myuser ''' conn = _get_conn(reg...
def get_all_user_policies(user_name, marker=None, max_items=None, region=None, key=None, keyid=None, profile=None): ''' Get all user policies. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_all_user_policies myuser ''' conn = _get_conn(reg...
[ "Get", "all", "user", "policies", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1373-L1395
[ "def", "get_all_user_policies", "(", "user_name", ",", "marker", "=", "None", ",", "max_items", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_user_policy
Retrieves the specified policy document for the specified user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_user_policy myuser mypolicyname
salt/modules/boto_iam.py
def get_user_policy(user_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Retrieves the specified policy document for the specified user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_user_policy myuser mypolicyname ''...
def get_user_policy(user_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Retrieves the specified policy document for the specified user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.get_user_policy myuser mypolicyname ''...
[ "Retrieves", "the", "specified", "policy", "document", "for", "the", "specified", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1398-L1423
[ "def", "get_user_policy", "(", "user_name", ",", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
put_user_policy
Adds or updates the specified policy document for the specified user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.put_user_policy myuser policyname policyrules
salt/modules/boto_iam.py
def put_user_policy(user_name, policy_name, policy_json, region=None, key=None, keyid=None, profile=None): ''' Adds or updates the specified policy document for the specified user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.put_user_policy myuser ...
def put_user_policy(user_name, policy_name, policy_json, region=None, key=None, keyid=None, profile=None): ''' Adds or updates the specified policy document for the specified user. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.put_user_policy myuser ...
[ "Adds", "or", "updates", "the", "specified", "policy", "document", "for", "the", "specified", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1426-L1455
[ "def", "put_user_policy", "(", "user_name", ",", "policy_name", ",", "policy_json", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "user", "=", "get_user", "(", "user_name", ",", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_user_policy
Delete a user policy. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_user_policy myuser mypolicy
salt/modules/boto_iam.py
def delete_user_policy(user_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Delete a user policy. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_user_policy myuser mypolicy ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=prof...
def delete_user_policy(user_name, policy_name, region=None, key=None, keyid=None, profile=None): ''' Delete a user policy. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_user_policy myuser mypolicy ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=prof...
[ "Delete", "a", "user", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1458-L1483
[ "def", "delete_user_policy", "(", "user_name", ",", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
upload_server_cert
Upload a certificate to Amazon. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.upload_server_cert mycert_name crt priv_key :param cert_name: The name for the server certificate. Do not include the path in this value. :param cert_body: The contents of...
salt/modules/boto_iam.py
def upload_server_cert(cert_name, cert_body, private_key, cert_chain=None, path=None, region=None, key=None, keyid=None, profile=None): ''' Upload a certificate to Amazon. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.upload_se...
def upload_server_cert(cert_name, cert_body, private_key, cert_chain=None, path=None, region=None, key=None, keyid=None, profile=None): ''' Upload a certificate to Amazon. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.upload_se...
[ "Upload", "a", "certificate", "to", "Amazon", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1486-L1522
[ "def", "upload_server_cert", "(", "cert_name", ",", "cert_body", ",", "private_key", ",", "cert_chain", "=", "None", ",", "path", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_server_certificates
Lists the server certificates stored in IAM that have the specified path prefix. .. versionadded:: ??? :param path_prefix: The path prefix for filtering the results. For example: /company/servercerts would get all server certificates for which the path starts with /company/servercerts . ...
salt/modules/boto_iam.py
def list_server_certificates(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Lists the server certificates stored in IAM that have the specified path prefix. .. versionadded:: ??? :param path_prefix: The path prefix for filtering the results. For example: /company/serv...
def list_server_certificates(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Lists the server certificates stored in IAM that have the specified path prefix. .. versionadded:: ??? :param path_prefix: The path prefix for filtering the results. For example: /company/serv...
[ "Lists", "the", "server", "certificates", "stored", "in", "IAM", "that", "have", "the", "specified", "path", "prefix", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1525-L1572
[ "def", "list_server_certificates", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "retries", "=", "10", "sleep", "=", "6", "conn", "=", "__utils__",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_server_cert
Deletes a certificate from Amazon. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.delete_server_cert mycert_name
salt/modules/boto_iam.py
def delete_server_cert(cert_name, region=None, key=None, keyid=None, profile=None): ''' Deletes a certificate from Amazon. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.delete_server_cert mycert_name ''' conn = _get_conn(region=region, key=ke...
def delete_server_cert(cert_name, region=None, key=None, keyid=None, profile=None): ''' Deletes a certificate from Amazon. .. versionadded:: 2015.8.0 CLI Example: .. code-block:: bash salt myminion boto_iam.delete_server_cert mycert_name ''' conn = _get_conn(region=region, key=ke...
[ "Deletes", "a", "certificate", "from", "Amazon", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1599-L1617
[ "def", "delete_server_cert", "(", "cert_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
export_users
Get all IAM user details. Produces results that can be used to create an sls file. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.export_users --out=txt | sed "s/local: //" > iam_users.sls
salt/modules/boto_iam.py
def export_users(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get all IAM user details. Produces results that can be used to create an sls file. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.export_users --out=txt | sed "s/local: //"...
def export_users(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get all IAM user details. Produces results that can be used to create an sls file. .. versionadded:: 2016.3.0 CLI Example: salt-call boto_iam.export_users --out=txt | sed "s/local: //"...
[ "Get", "all", "IAM", "user", "details", ".", "Produces", "results", "that", "can", "be", "used", "to", "create", "an", "sls", "file", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1620-L1656
[ "def", "export_users", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
export_roles
Get all IAM role details. Produces results that can be used to create an sls file. CLI Example: salt-call boto_iam.export_roles --out=txt | sed "s/local: //" > iam_roles.sls
salt/modules/boto_iam.py
def export_roles(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get all IAM role details. Produces results that can be used to create an sls file. CLI Example: salt-call boto_iam.export_roles --out=txt | sed "s/local: //" > iam_roles.sls ''' conn = _get_conn(reg...
def export_roles(path_prefix='/', region=None, key=None, keyid=None, profile=None): ''' Get all IAM role details. Produces results that can be used to create an sls file. CLI Example: salt-call boto_iam.export_roles --out=txt | sed "s/local: //" > iam_roles.sls ''' conn = _get_conn(reg...
[ "Get", "all", "IAM", "role", "details", ".", "Produces", "results", "that", "can", "be", "used", "to", "create", "an", "sls", "file", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1659-L1693
[ "def", "export_roles", "(", "path_prefix", "=", "'/'", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
policy_exists
Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile
salt/modules/boto_iam.py
def policy_exists(policy_name, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key=key, keyid=keyid, p...
def policy_exists(policy_name, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key=key, keyid=keyid, p...
[ "Check", "to", "see", "if", "policy", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1706-L1724
[ "def", "policy_exists", "(", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_policy
Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile
salt/modules/boto_iam.py
def get_policy(policy_name, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile...
def get_policy(policy_name, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile...
[ "Check", "to", "see", "if", "policy", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1727-L1745
[ "def", "get_policy", "(", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "ke...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_policy
Create a policy. CLI Example: .. code-block:: bash salt myminios boto_iam.create_policy mypolicy '{"Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": ["s3:Get*", "s3:List*"], "Resource": ["arn:aws:s3:::my-bucket/shared/*"]},]}'
salt/modules/boto_iam.py
def create_policy(policy_name, policy_document, path=None, description=None, region=None, key=None, keyid=None, profile=None): ''' Create a policy. CLI Example: .. code-block:: bash salt myminios boto_iam.create_policy mypolicy '{"Version": "2012-10-17", "Statement": [{ "Effe...
def create_policy(policy_name, policy_document, path=None, description=None, region=None, key=None, keyid=None, profile=None): ''' Create a policy. CLI Example: .. code-block:: bash salt myminios boto_iam.create_policy mypolicy '{"Version": "2012-10-17", "Statement": [{ "Effe...
[ "Create", "a", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1748-L1776
[ "def", "create_policy", "(", "policy_name", ",", "policy_document", ",", "path", "=", "None", ",", "description", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_policies
List policies. CLI Example: .. code-block:: bash salt myminion boto_iam.list_policies
salt/modules/boto_iam.py
def list_policies(region=None, key=None, keyid=None, profile=None): ''' List policies. CLI Example: .. code-block:: bash salt myminion boto_iam.list_policies ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: policies = [] for ret in _...
def list_policies(region=None, key=None, keyid=None, profile=None): ''' List policies. CLI Example: .. code-block:: bash salt myminion boto_iam.list_policies ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: policies = [] for ret in _...
[ "List", "policies", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1806-L1827
[ "def", "list_policies", "(", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", "=", "keyid...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
policy_version_exists
Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile
salt/modules/boto_iam.py
def policy_version_exists(policy_name, version_id, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key...
def policy_version_exists(policy_name, version_id, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key...
[ "Check", "to", "see", "if", "policy", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1830-L1848
[ "def", "policy_version_exists", "(", "policy_name", ",", "version_id", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_policy_version
Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile
salt/modules/boto_iam.py
def get_policy_version(policy_name, version_id, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key=key, ...
def get_policy_version(policy_name, version_id, region=None, key=None, keyid=None, profile=None): ''' Check to see if policy exists. CLI Example: .. code-block:: bash salt myminion boto_iam.instance_profile_exists myiprofile ''' conn = _get_conn(region=region, key=key, ...
[ "Check", "to", "see", "if", "policy", "exists", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1851-L1871
[ "def", "get_policy_version", "(", "policy_name", ",", "version_id", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_policy_version
Create a policy version. CLI Example: .. code-block:: bash salt myminios boto_iam.create_policy_version mypolicy '{"Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": ["s3:Get*", "s3:List*"], "Resource": ["arn:aws:s3:::my-bucket/shared/*"]},]}'
salt/modules/boto_iam.py
def create_policy_version(policy_name, policy_document, set_as_default=None, region=None, key=None, keyid=None, profile=None): ''' Create a policy version. CLI Example: .. code-block:: bash salt myminios boto_iam.create_policy_version mypolicy '{"Version": "2012-10-17", "Stat...
def create_policy_version(policy_name, policy_document, set_as_default=None, region=None, key=None, keyid=None, profile=None): ''' Create a policy version. CLI Example: .. code-block:: bash salt myminios boto_iam.create_policy_version mypolicy '{"Version": "2012-10-17", "Stat...
[ "Create", "a", "policy", "version", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1874-L1902
[ "def", "create_policy_version", "(", "policy_name", ",", "policy_document", ",", "set_as_default", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_policy_version
Delete a policy version. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_policy_version mypolicy v1
salt/modules/boto_iam.py
def delete_policy_version(policy_name, version_id, region=None, key=None, keyid=None, profile=None): ''' Delete a policy version. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_policy_version mypolicy v1 ''' conn = _get_conn(region=region, key=key, k...
def delete_policy_version(policy_name, version_id, region=None, key=None, keyid=None, profile=None): ''' Delete a policy version. CLI Example: .. code-block:: bash salt myminion boto_iam.delete_policy_version mypolicy v1 ''' conn = _get_conn(region=region, key=key, k...
[ "Delete", "a", "policy", "version", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1905-L1930
[ "def", "delete_policy_version", "(", "policy_name", ",", "version_id", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_policy_versions
List versions of a policy. CLI Example: .. code-block:: bash salt myminion boto_iam.list_policy_versions mypolicy
salt/modules/boto_iam.py
def list_policy_versions(policy_name, region=None, key=None, keyid=None, profile=None): ''' List versions of a policy. CLI Example: .. code-block:: bash salt myminion boto_iam.list_policy_versions mypolicy ''' conn = _get_conn(region=region, key=key, keyid=keyid, pro...
def list_policy_versions(policy_name, region=None, key=None, keyid=None, profile=None): ''' List versions of a policy. CLI Example: .. code-block:: bash salt myminion boto_iam.list_policy_versions mypolicy ''' conn = _get_conn(region=region, key=key, keyid=keyid, pro...
[ "List", "versions", "of", "a", "policy", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L1933-L1953
[ "def", "list_policy_versions", "(", "policy_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
detach_user_policy
Detach a managed policy to a user. CLI Example: .. code-block:: bash salt myminion boto_iam.detach_user_policy mypolicy myuser
salt/modules/boto_iam.py
def detach_user_policy(policy_name, user_name, region=None, key=None, keyid=None, profile=None): ''' Detach a managed policy to a user. CLI Example: .. code-block:: bash salt myminion boto_iam.detach_user_policy mypolicy myuser ''' conn = _get_conn(region=region, key...
def detach_user_policy(policy_name, user_name, region=None, key=None, keyid=None, profile=None): ''' Detach a managed policy to a user. CLI Example: .. code-block:: bash salt myminion boto_iam.detach_user_policy mypolicy myuser ''' conn = _get_conn(region=region, key...
[ "Detach", "a", "managed", "policy", "to", "a", "user", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2006-L2027
[ "def", "detach_user_policy", "(", "policy_name", ",", "user_name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_entities_for_policy
List entities that a policy is attached to. CLI Example: .. code-block:: bash salt myminion boto_iam.list_entities_for_policy mypolicy
salt/modules/boto_iam.py
def list_entities_for_policy(policy_name, path_prefix=None, entity_filter=None, region=None, key=None, keyid=None, profile=None): ''' List entities that a policy is attached to. CLI Example: .. code-block:: bash salt myminion boto_iam.list_entities_for_policy mypolicy ''...
def list_entities_for_policy(policy_name, path_prefix=None, entity_filter=None, region=None, key=None, keyid=None, profile=None): ''' List entities that a policy is attached to. CLI Example: .. code-block:: bash salt myminion boto_iam.list_entities_for_policy mypolicy ''...
[ "List", "entities", "that", "a", "policy", "is", "attached", "to", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2126-L2165
[ "def", "list_entities_for_policy", "(", "policy_name", ",", "path_prefix", "=", "None", ",", "entity_filter", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_attached_role_policies
List entities attached to the given role. CLI Example: .. code-block:: bash salt myminion boto_iam.list_entities_for_policy mypolicy
salt/modules/boto_iam.py
def list_attached_role_policies(role_name, path_prefix=None, entity_filter=None, region=None, key=None, keyid=None, profile=None): ''' List entities attached to the given role. CLI Example: .. code-block:: bash salt myminion boto_iam.list_entities_for_policy mypolicy '''...
def list_attached_role_policies(role_name, path_prefix=None, entity_filter=None, region=None, key=None, keyid=None, profile=None): ''' List entities attached to the given role. CLI Example: .. code-block:: bash salt myminion boto_iam.list_entities_for_policy mypolicy '''...
[ "List", "entities", "attached", "to", "the", "given", "role", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2230-L2258
[ "def", "list_attached_role_policies", "(", "role_name", ",", "path_prefix", "=", "None", ",", "entity_filter", "=", "None", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "="...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
create_saml_provider
Create SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.create_saml_provider my_saml_provider_name saml_metadata_document
salt/modules/boto_iam.py
def create_saml_provider(name, saml_metadata_document, region=None, key=None, keyid=None, profile=None): ''' Create SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.create_saml_provider my_saml_provider_name saml_metadata_document ''' conn = _get_conn(region=regi...
def create_saml_provider(name, saml_metadata_document, region=None, key=None, keyid=None, profile=None): ''' Create SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.create_saml_provider my_saml_provider_name saml_metadata_document ''' conn = _get_conn(region=regi...
[ "Create", "SAML", "provider" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2261-L2280
[ "def", "create_saml_provider", "(", "name", ",", "saml_metadata_document", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_saml_provider_arn
Get SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.get_saml_provider_arn my_saml_provider_name
salt/modules/boto_iam.py
def get_saml_provider_arn(name, region=None, key=None, keyid=None, profile=None): ''' Get SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.get_saml_provider_arn my_saml_provider_name ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) t...
def get_saml_provider_arn(name, region=None, key=None, keyid=None, profile=None): ''' Get SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.get_saml_provider_arn my_saml_provider_name ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) t...
[ "Get", "SAML", "provider" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2283-L2304
[ "def", "get_saml_provider_arn", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete_saml_provider
Delete SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.delete_saml_provider my_saml_provider_name
salt/modules/boto_iam.py
def delete_saml_provider(name, region=None, key=None, keyid=None, profile=None): ''' Delete SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.delete_saml_provider my_saml_provider_name ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
def delete_saml_provider(name, region=None, key=None, keyid=None, profile=None): ''' Delete SAML provider CLI Example: .. code-block:: bash salt myminion boto_iam.delete_saml_provider my_saml_provider_name ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) ...
[ "Delete", "SAML", "provider" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2307-L2330
[ "def", "delete_saml_provider", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_saml_providers
List SAML providers. CLI Example: .. code-block:: bash salt myminion boto_iam.list_saml_providers
salt/modules/boto_iam.py
def list_saml_providers(region=None, key=None, keyid=None, profile=None): ''' List SAML providers. CLI Example: .. code-block:: bash salt myminion boto_iam.list_saml_providers ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: providers = [] ...
def list_saml_providers(region=None, key=None, keyid=None, profile=None): ''' List SAML providers. CLI Example: .. code-block:: bash salt myminion boto_iam.list_saml_providers ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: providers = [] ...
[ "List", "SAML", "providers", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2333-L2353
[ "def", "list_saml_providers", "(", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "keyid", "=", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
get_saml_provider
Get SAML provider document. CLI Example: .. code-block:: bash salt myminion boto_iam.get_saml_provider arn
salt/modules/boto_iam.py
def get_saml_provider(name, region=None, key=None, keyid=None, profile=None): ''' Get SAML provider document. CLI Example: .. code-block:: bash salt myminion boto_iam.get_saml_provider arn ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: prov...
def get_saml_provider(name, region=None, key=None, keyid=None, profile=None): ''' Get SAML provider document. CLI Example: .. code-block:: bash salt myminion boto_iam.get_saml_provider arn ''' conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile) try: prov...
[ "Get", "SAML", "provider", "document", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/boto_iam.py#L2356-L2373
[ "def", "get_saml_provider", "(", "name", ",", "region", "=", "None", ",", "key", "=", "None", ",", "keyid", "=", "None", ",", "profile", "=", "None", ")", ":", "conn", "=", "_get_conn", "(", "region", "=", "region", ",", "key", "=", "key", ",", "ke...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
validate
Validate the beacon configuration
salt/beacons/adb.py
def validate(config): ''' Validate the beacon configuration ''' # Configuration for adb beacon should be a dictionary with states array if not isinstance(config, list): log.info('Configuration for adb beacon must be a list.') return False, ('Configuration for adb beacon must be a lis...
def validate(config): ''' Validate the beacon configuration ''' # Configuration for adb beacon should be a dictionary with states array if not isinstance(config, list): log.info('Configuration for adb beacon must be a list.') return False, ('Configuration for adb beacon must be a lis...
[ "Validate", "the", "beacon", "configuration" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/beacons/adb.py#L32-L60
[ "def", "validate", "(", "config", ")", ":", "# Configuration for adb beacon should be a dictionary with states array", "if", "not", "isinstance", "(", "config", ",", "list", ")", ":", "log", ".", "info", "(", "'Configuration for adb beacon must be a list.'", ")", "return"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
beacon
Emit the status of all devices returned by adb Specify the device states that should emit an event, there will be an event for each device with the event type and device specified. .. code-block:: yaml beacons: adb: - states: - offline - u...
salt/beacons/adb.py
def beacon(config): ''' Emit the status of all devices returned by adb Specify the device states that should emit an event, there will be an event for each device with the event type and device specified. .. code-block:: yaml beacons: adb: - states: ...
def beacon(config): ''' Emit the status of all devices returned by adb Specify the device states that should emit an event, there will be an event for each device with the event type and device specified. .. code-block:: yaml beacons: adb: - states: ...
[ "Emit", "the", "status", "of", "all", "devices", "returned", "by", "adb" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/beacons/adb.py#L63-L144
[ "def", "beacon", "(", "config", ")", ":", "log", ".", "trace", "(", "'adb beacon starting'", ")", "ret", "=", "[", "]", "_config", "=", "{", "}", "list", "(", "map", "(", "_config", ".", "update", ",", "config", ")", ")", "out", "=", "__salt__", "[...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
set_
Add a value to the named set USAGE: .. code-block:: yaml foo: reg.set: - add: bar - match: my/custom/event
salt/thorium/reg.py
def set_(name, add, match): ''' Add a value to the named set USAGE: .. code-block:: yaml foo: reg.set: - add: bar - match: my/custom/event ''' ret = {'name': name, 'changes': {}, 'comment': '', 'result': True} if n...
def set_(name, add, match): ''' Add a value to the named set USAGE: .. code-block:: yaml foo: reg.set: - add: bar - match: my/custom/event ''' ret = {'name': name, 'changes': {}, 'comment': '', 'result': True} if n...
[ "Add", "a", "value", "to", "the", "named", "set" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/thorium/reg.py#L17-L47
[ "def", "set_", "(", "name", ",", "add", ",", "match", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'comment'", ":", "''", ",", "'result'", ":", "True", "}", "if", "name", "not", "in", "__reg__", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
list_
Add the specified values to the named list If ``stamp`` is True, then the timestamp from the event will also be added if ``prune`` is set to an integer higher than ``0``, then only the last ``prune`` values will be kept in the list. USAGE: .. code-block:: yaml foo: reg.list: ...
salt/thorium/reg.py
def list_(name, add, match, stamp=False, prune=0): ''' Add the specified values to the named list If ``stamp`` is True, then the timestamp from the event will also be added if ``prune`` is set to an integer higher than ``0``, then only the last ``prune`` values will be kept in the list. USAGE:...
def list_(name, add, match, stamp=False, prune=0): ''' Add the specified values to the named list If ``stamp`` is True, then the timestamp from the event will also be added if ``prune`` is set to an integer higher than ``0``, then only the last ``prune`` values will be kept in the list. USAGE:...
[ "Add", "the", "specified", "values", "to", "the", "named", "list" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/thorium/reg.py#L50-L92
[ "def", "list_", "(", "name", ",", "add", ",", "match", ",", "stamp", "=", "False", ",", "prune", "=", "0", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'comment'", ":", "''", ",", "'result'", ":", "Tr...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
mean
Accept a numeric value from the matched events and store a running average of the values in the given register. If the specified value is not numeric it will be skipped USAGE: .. code-block:: yaml foo: reg.mean: - add: data_field - match: my/custom/event
salt/thorium/reg.py
def mean(name, add, match): ''' Accept a numeric value from the matched events and store a running average of the values in the given register. If the specified value is not numeric it will be skipped USAGE: .. code-block:: yaml foo: reg.mean: - add: data_field ...
def mean(name, add, match): ''' Accept a numeric value from the matched events and store a running average of the values in the given register. If the specified value is not numeric it will be skipped USAGE: .. code-block:: yaml foo: reg.mean: - add: data_field ...
[ "Accept", "a", "numeric", "value", "from", "the", "matched", "events", "and", "store", "a", "running", "average", "of", "the", "values", "in", "the", "given", "register", ".", "If", "the", "specified", "value", "is", "not", "numeric", "it", "will", "be", ...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/thorium/reg.py#L95-L133
[ "def", "mean", "(", "name", ",", "add", ",", "match", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'comment'", ":", "''", ",", "'result'", ":", "True", "}", "if", "name", "not", "in", "__reg__", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
clear
Clear the namespace from the register USAGE: .. code-block:: yaml clearns: reg.clear: - name: myregister
salt/thorium/reg.py
def clear(name): ''' Clear the namespace from the register USAGE: .. code-block:: yaml clearns: reg.clear: - name: myregister ''' ret = {'name': name, 'changes': {}, 'comment': '', 'result': True} if name in __reg__: _...
def clear(name): ''' Clear the namespace from the register USAGE: .. code-block:: yaml clearns: reg.clear: - name: myregister ''' ret = {'name': name, 'changes': {}, 'comment': '', 'result': True} if name in __reg__: _...
[ "Clear", "the", "namespace", "from", "the", "register" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/thorium/reg.py#L136-L154
[ "def", "clear", "(", "name", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'comment'", ":", "''", ",", "'result'", ":", "True", "}", "if", "name", "in", "__reg__", ":", "__reg__", "[", "name", "]", ".", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
delete
Delete the namespace from the register USAGE: .. code-block:: yaml deletens: reg.delete: - name: myregister
salt/thorium/reg.py
def delete(name): ''' Delete the namespace from the register USAGE: .. code-block:: yaml deletens: reg.delete: - name: myregister ''' ret = {'name': name, 'changes': {}, 'comment': '', 'result': True} if name in __reg__: ...
def delete(name): ''' Delete the namespace from the register USAGE: .. code-block:: yaml deletens: reg.delete: - name: myregister ''' ret = {'name': name, 'changes': {}, 'comment': '', 'result': True} if name in __reg__: ...
[ "Delete", "the", "namespace", "from", "the", "register" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/thorium/reg.py#L157-L175
[ "def", "delete", "(", "name", ")", ":", "ret", "=", "{", "'name'", ":", "name", ",", "'changes'", ":", "{", "}", ",", "'comment'", ":", "''", ",", "'result'", ":", "True", "}", "if", "name", "in", "__reg__", ":", "del", "__reg__", "[", "name", "]...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
set_
Set a key in etcd name The etcd key name, for example: ``/foo/bar/baz``. value The value the key should contain. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Salt Master config. .. code-block:: yaml ...
salt/states/etcd_mod.py
def set_(name, value, profile=None, **kwargs): ''' Set a key in etcd name The etcd key name, for example: ``/foo/bar/baz``. value The value the key should contain. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Sal...
def set_(name, value, profile=None, **kwargs): ''' Set a key in etcd name The etcd key name, for example: ``/foo/bar/baz``. value The value the key should contain. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Sal...
[ "Set", "a", "key", "in", "etcd" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/etcd_mod.py#L147-L192
[ "def", "set_", "(", "name", ",", "value", ",", "profile", "=", "None", ",", "*", "*", "kwargs", ")", ":", "created", "=", "False", "rtn", "=", "{", "'name'", ":", "name", ",", "'comment'", ":", "'Key contains correct value'", ",", "'result'", ":", "Tru...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
directory
Create a directory in etcd. name The etcd directory name, for example: ``/foo/bar/baz``. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Salt Master config. .. code-block:: yaml my_etd_config: etcd.ho...
salt/states/etcd_mod.py
def directory(name, profile=None, **kwargs): ''' Create a directory in etcd. name The etcd directory name, for example: ``/foo/bar/baz``. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Salt Master config. .. code-block...
def directory(name, profile=None, **kwargs): ''' Create a directory in etcd. name The etcd directory name, for example: ``/foo/bar/baz``. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Salt Master config. .. code-block...
[ "Create", "a", "directory", "in", "etcd", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/etcd_mod.py#L224-L263
[ "def", "directory", "(", "name", ",", "profile", "=", "None", ",", "*", "*", "kwargs", ")", ":", "created", "=", "False", "rtn", "=", "{", "'name'", ":", "name", ",", "'comment'", ":", "'Directory exists'", ",", "'result'", ":", "True", ",", "'changes'...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
rm
Deletes a key from etcd name The etcd key name to remove, for example ``/foo/bar/baz``. recurse Optional, defaults to ``False``. If ``True`` performs a recursive delete. profile Optional, defaults to ``None``. Sets the etcd profile to use which has been defined in the Salt...
salt/states/etcd_mod.py
def rm(name, recurse=False, profile=None, **kwargs): ''' Deletes a key from etcd name The etcd key name to remove, for example ``/foo/bar/baz``. recurse Optional, defaults to ``False``. If ``True`` performs a recursive delete. profile Optional, defaults to ``None``. Sets t...
def rm(name, recurse=False, profile=None, **kwargs): ''' Deletes a key from etcd name The etcd key name to remove, for example ``/foo/bar/baz``. recurse Optional, defaults to ``False``. If ``True`` performs a recursive delete. profile Optional, defaults to ``None``. Sets t...
[ "Deletes", "a", "key", "from", "etcd" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/etcd_mod.py#L266-L305
[ "def", "rm", "(", "name", ",", "recurse", "=", "False", ",", "profile", "=", "None", ",", "*", "*", "kwargs", ")", ":", "rtn", "=", "{", "'name'", ":", "name", ",", "'result'", ":", "True", ",", "'changes'", ":", "{", "}", "}", "if", "not", "__...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
mod_watch
The etcd watcher, called to invoke the watch command. When called, execute a etcd function based on a watch call requisite. .. note:: This state exists to support special handling of the ``watch`` :ref:`requisite <requisites>`. It should not be called directly. Parameters for this func...
salt/states/etcd_mod.py
def mod_watch(name, **kwargs): ''' The etcd watcher, called to invoke the watch command. When called, execute a etcd function based on a watch call requisite. .. note:: This state exists to support special handling of the ``watch`` :ref:`requisite <requisites>`. It should not be called ...
def mod_watch(name, **kwargs): ''' The etcd watcher, called to invoke the watch command. When called, execute a etcd function based on a watch call requisite. .. note:: This state exists to support special handling of the ``watch`` :ref:`requisite <requisites>`. It should not be called ...
[ "The", "etcd", "watcher", "called", "to", "invoke", "the", "watch", "command", ".", "When", "called", "execute", "a", "etcd", "function", "based", "on", "a", "watch", "call", "requisite", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/states/etcd_mod.py#L337-L368
[ "def", "mod_watch", "(", "name", ",", "*", "*", "kwargs", ")", ":", "# Watch to set etcd key", "if", "kwargs", ".", "get", "(", "'sfun'", ")", "in", "[", "'wait_set_key'", ",", "'wait_set'", "]", ":", "return", "set_", "(", "name", ",", "kwargs", ".", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
running_service_owners
Determine which packages own the currently running services. By default, excludes files whose full path starts with ``/dev``, ``/home``, ``/media``, ``/proc``, ``/run``, ``/sys``, ``/tmp`` and ``/var``. This can be overridden by passing in a new list to ``exclude``. CLI Example: salt myminion ...
salt/modules/introspect.py
def running_service_owners( exclude=('/dev', '/home', '/media', '/proc', '/run', '/sys/', '/tmp', '/var') ): ''' Determine which packages own the currently running services. By default, excludes files whose full path starts with ``/dev``, ``/home``, ``/media``, ``/proc``, ``...
def running_service_owners( exclude=('/dev', '/home', '/media', '/proc', '/run', '/sys/', '/tmp', '/var') ): ''' Determine which packages own the currently running services. By default, excludes files whose full path starts with ``/dev``, ``/home``, ``/media``, ``/proc``, ``...
[ "Determine", "which", "packages", "own", "the", "currently", "running", "services", ".", "By", "default", "excludes", "files", "whose", "full", "path", "starts", "with", "/", "dev", "/", "home", "/", "media", "/", "proc", "/", "run", "/", "sys", "/", "tm...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/introspect.py#L15-L66
[ "def", "running_service_owners", "(", "exclude", "=", "(", "'/dev'", ",", "'/home'", ",", "'/media'", ",", "'/proc'", ",", "'/run'", ",", "'/sys/'", ",", "'/tmp'", ",", "'/var'", ")", ")", ":", "error", "=", "{", "}", "if", "'pkg.owner'", "not", "in", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
enabled_service_owners
Return which packages own each of the services that are currently enabled. CLI Example: salt myminion introspect.enabled_service_owners
salt/modules/introspect.py
def enabled_service_owners(): ''' Return which packages own each of the services that are currently enabled. CLI Example: salt myminion introspect.enabled_service_owners ''' error = {} if 'pkg.owner' not in __salt__: error['Unsupported Package Manager'] = ( 'The mod...
def enabled_service_owners(): ''' Return which packages own each of the services that are currently enabled. CLI Example: salt myminion introspect.enabled_service_owners ''' error = {} if 'pkg.owner' not in __salt__: error['Unsupported Package Manager'] = ( 'The mod...
[ "Return", "which", "packages", "own", "each", "of", "the", "services", "that", "are", "currently", "enabled", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/introspect.py#L69-L104
[ "def", "enabled_service_owners", "(", ")", ":", "error", "=", "{", "}", "if", "'pkg.owner'", "not", "in", "__salt__", ":", "error", "[", "'Unsupported Package Manager'", "]", "=", "(", "'The module for the package manager on this system does not '", "'support looking up w...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
service_highstate
Return running and enabled services in a highstate structure. By default also returns package dependencies for those services, which means that package definitions must be created outside this function. To drop the package dependencies, set ``requires`` to False. CLI Example: salt myminion int...
salt/modules/introspect.py
def service_highstate(requires=True): ''' Return running and enabled services in a highstate structure. By default also returns package dependencies for those services, which means that package definitions must be created outside this function. To drop the package dependencies, set ``requires`` to F...
def service_highstate(requires=True): ''' Return running and enabled services in a highstate structure. By default also returns package dependencies for those services, which means that package definitions must be created outside this function. To drop the package dependencies, set ``requires`` to F...
[ "Return", "running", "and", "enabled", "services", "in", "a", "highstate", "structure", ".", "By", "default", "also", "returns", "package", "dependencies", "for", "those", "services", "which", "means", "that", "package", "definitions", "must", "be", "created", "...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/introspect.py#L107-L146
[ "def", "service_highstate", "(", "requires", "=", "True", ")", ":", "ret", "=", "{", "}", "running", "=", "running_service_owners", "(", ")", "for", "service", "in", "running", ":", "ret", "[", "service", "]", "=", "{", "'service'", ":", "[", "'running'"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
targets
Return the targets
salt/roster/clustershell.py
def targets(tgt, tgt_type='glob', **kwargs): ''' Return the targets ''' ret = {} ports = __opts__['ssh_scan_ports'] if not isinstance(ports, list): # Comma-separate list of integers ports = list(map(int, six.text_type(ports).split(','))) hosts = list(NodeSet(tgt)) host_a...
def targets(tgt, tgt_type='glob', **kwargs): ''' Return the targets ''' ret = {} ports = __opts__['ssh_scan_ports'] if not isinstance(ports, list): # Comma-separate list of integers ports = list(map(int, six.text_type(ports).split(','))) hosts = list(NodeSet(tgt)) host_a...
[ "Return", "the", "targets" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/roster/clustershell.py#L33-L59
[ "def", "targets", "(", "tgt", ",", "tgt_type", "=", "'glob'", ",", "*", "*", "kwargs", ")", ":", "ret", "=", "{", "}", "ports", "=", "__opts__", "[", "'ssh_scan_ports'", "]", "if", "not", "isinstance", "(", "ports", ",", "list", ")", ":", "# Comma-se...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_gather_buffer_space
Gather some system data and then calculate buffer space. Result is in bytes.
salt/config/__init__.py
def _gather_buffer_space(): ''' Gather some system data and then calculate buffer space. Result is in bytes. ''' if HAS_PSUTIL and psutil.version_info >= (0, 6, 0): # Oh good, we have psutil. This will be quick. total_mem = psutil.virtual_memory().total else: # Avoid...
def _gather_buffer_space(): ''' Gather some system data and then calculate buffer space. Result is in bytes. ''' if HAS_PSUTIL and psutil.version_info >= (0, 6, 0): # Oh good, we have psutil. This will be quick. total_mem = psutil.virtual_memory().total else: # Avoid...
[ "Gather", "some", "system", "data", "and", "then", "calculate", "buffer", "space", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L76-L95
[ "def", "_gather_buffer_space", "(", ")", ":", "if", "HAS_PSUTIL", "and", "psutil", ".", "version_info", ">=", "(", "0", ",", "6", ",", "0", ")", ":", "# Oh good, we have psutil. This will be quick.", "total_mem", "=", "psutil", ".", "virtual_memory", "(", ")", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_normalize_roots
Normalize file or pillar roots.
salt/config/__init__.py
def _normalize_roots(file_roots): ''' Normalize file or pillar roots. ''' for saltenv, dirs in six.iteritems(file_roots): normalized_saltenv = six.text_type(saltenv) if normalized_saltenv != saltenv: file_roots[normalized_saltenv] = file_roots.pop(saltenv) if not isin...
def _normalize_roots(file_roots): ''' Normalize file or pillar roots. ''' for saltenv, dirs in six.iteritems(file_roots): normalized_saltenv = six.text_type(saltenv) if normalized_saltenv != saltenv: file_roots[normalized_saltenv] = file_roots.pop(saltenv) if not isin...
[ "Normalize", "file", "or", "pillar", "roots", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L1956-L1968
[ "def", "_normalize_roots", "(", "file_roots", ")", ":", "for", "saltenv", ",", "dirs", "in", "six", ".", "iteritems", "(", "file_roots", ")", ":", "normalized_saltenv", "=", "six", ".", "text_type", "(", "saltenv", ")", "if", "normalized_saltenv", "!=", "sal...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_validate_pillar_roots
If the pillar_roots option has a key that is None then we will error out, just replace it with an empty list
salt/config/__init__.py
def _validate_pillar_roots(pillar_roots): ''' If the pillar_roots option has a key that is None then we will error out, just replace it with an empty list ''' if not isinstance(pillar_roots, dict): log.warning('The pillar_roots parameter is not properly formatted,' ' usin...
def _validate_pillar_roots(pillar_roots): ''' If the pillar_roots option has a key that is None then we will error out, just replace it with an empty list ''' if not isinstance(pillar_roots, dict): log.warning('The pillar_roots parameter is not properly formatted,' ' usin...
[ "If", "the", "pillar_roots", "option", "has", "a", "key", "that", "is", "None", "then", "we", "will", "error", "out", "just", "replace", "it", "with", "an", "empty", "list" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L1971-L1980
[ "def", "_validate_pillar_roots", "(", "pillar_roots", ")", ":", "if", "not", "isinstance", "(", "pillar_roots", ",", "dict", ")", ":", "log", ".", "warning", "(", "'The pillar_roots parameter is not properly formatted,'", "' using defaults'", ")", "return", "{", "'bas...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_validate_file_roots
If the file_roots option has a key that is None then we will error out, just replace it with an empty list
salt/config/__init__.py
def _validate_file_roots(file_roots): ''' If the file_roots option has a key that is None then we will error out, just replace it with an empty list ''' if not isinstance(file_roots, dict): log.warning('The file_roots parameter is not properly formatted,' ' using defaults...
def _validate_file_roots(file_roots): ''' If the file_roots option has a key that is None then we will error out, just replace it with an empty list ''' if not isinstance(file_roots, dict): log.warning('The file_roots parameter is not properly formatted,' ' using defaults...
[ "If", "the", "file_roots", "option", "has", "a", "key", "that", "is", "None", "then", "we", "will", "error", "out", "just", "replace", "it", "with", "an", "empty", "list" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L1983-L1992
[ "def", "_validate_file_roots", "(", "file_roots", ")", ":", "if", "not", "isinstance", "(", "file_roots", ",", "dict", ")", ":", "log", ".", "warning", "(", "'The file_roots parameter is not properly formatted,'", "' using defaults'", ")", "return", "{", "'base'", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_expand_glob_path
Applies shell globbing to a set of directories and returns the expanded paths
salt/config/__init__.py
def _expand_glob_path(file_roots): ''' Applies shell globbing to a set of directories and returns the expanded paths ''' unglobbed_path = [] for path in file_roots: try: if glob.has_magic(path): unglobbed_path.extend(glob.glob(path)) else: ...
def _expand_glob_path(file_roots): ''' Applies shell globbing to a set of directories and returns the expanded paths ''' unglobbed_path = [] for path in file_roots: try: if glob.has_magic(path): unglobbed_path.extend(glob.glob(path)) else: ...
[ "Applies", "shell", "globbing", "to", "a", "set", "of", "directories", "and", "returns", "the", "expanded", "paths" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L1995-L2009
[ "def", "_expand_glob_path", "(", "file_roots", ")", ":", "unglobbed_path", "=", "[", "]", "for", "path", "in", "file_roots", ":", "try", ":", "if", "glob", ".", "has_magic", "(", "path", ")", ":", "unglobbed_path", ".", "extend", "(", "glob", ".", "glob"...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_validate_opts
Check that all of the types of values passed into the config are of the right types
salt/config/__init__.py
def _validate_opts(opts): ''' Check that all of the types of values passed into the config are of the right types ''' def format_multi_opt(valid_type): try: num_types = len(valid_type) except TypeError: # Bare type name won't have a length, return the name of ...
def _validate_opts(opts): ''' Check that all of the types of values passed into the config are of the right types ''' def format_multi_opt(valid_type): try: num_types = len(valid_type) except TypeError: # Bare type name won't have a length, return the name of ...
[ "Check", "that", "all", "of", "the", "types", "of", "values", "passed", "into", "the", "config", "are", "of", "the", "right", "types" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2012-L2112
[ "def", "_validate_opts", "(", "opts", ")", ":", "def", "format_multi_opt", "(", "valid_type", ")", ":", "try", ":", "num_types", "=", "len", "(", "valid_type", ")", "except", "TypeError", ":", "# Bare type name won't have a length, return the name of the type", "# pas...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_validate_ssh_minion_opts
Ensure we're not using any invalid ssh_minion_opts. We want to make sure that the ssh_minion_opts does not override any pillar or fileserver options inherited from the master config. To add other items, modify the if statement in the for loop below.
salt/config/__init__.py
def _validate_ssh_minion_opts(opts): ''' Ensure we're not using any invalid ssh_minion_opts. We want to make sure that the ssh_minion_opts does not override any pillar or fileserver options inherited from the master config. To add other items, modify the if statement in the for loop below. ''' ...
def _validate_ssh_minion_opts(opts): ''' Ensure we're not using any invalid ssh_minion_opts. We want to make sure that the ssh_minion_opts does not override any pillar or fileserver options inherited from the master config. To add other items, modify the if statement in the for loop below. ''' ...
[ "Ensure", "we", "re", "not", "using", "any", "invalid", "ssh_minion_opts", ".", "We", "want", "to", "make", "sure", "that", "the", "ssh_minion_opts", "does", "not", "override", "any", "pillar", "or", "fileserver", "options", "inherited", "from", "the", "master...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2115-L2135
[ "def", "_validate_ssh_minion_opts", "(", "opts", ")", ":", "ssh_minion_opts", "=", "opts", ".", "get", "(", "'ssh_minion_opts'", ",", "{", "}", ")", "if", "not", "isinstance", "(", "ssh_minion_opts", ",", "dict", ")", ":", "log", ".", "error", "(", "'Inval...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_append_domain
Append a domain to the existing id if it doesn't already exist
salt/config/__init__.py
def _append_domain(opts): ''' Append a domain to the existing id if it doesn't already exist ''' # Domain already exists if opts['id'].endswith(opts['append_domain']): return opts['id'] # Trailing dot should mean an FQDN that is terminated, leave it alone. if opts['id'].endswith('.')...
def _append_domain(opts): ''' Append a domain to the existing id if it doesn't already exist ''' # Domain already exists if opts['id'].endswith(opts['append_domain']): return opts['id'] # Trailing dot should mean an FQDN that is terminated, leave it alone. if opts['id'].endswith('.')...
[ "Append", "a", "domain", "to", "the", "existing", "id", "if", "it", "doesn", "t", "already", "exist" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2138-L2148
[ "def", "_append_domain", "(", "opts", ")", ":", "# Domain already exists", "if", "opts", "[", "'id'", "]", ".", "endswith", "(", "opts", "[", "'append_domain'", "]", ")", ":", "return", "opts", "[", "'id'", "]", "# Trailing dot should mean an FQDN that is terminat...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_read_conf_file
Read in a config file from a given path and process it into a dictionary
salt/config/__init__.py
def _read_conf_file(path): ''' Read in a config file from a given path and process it into a dictionary ''' log.debug('Reading configuration from %s', path) with salt.utils.files.fopen(path, 'r') as conf_file: try: conf_opts = salt.utils.yaml.safe_load(conf_file) or {} ex...
def _read_conf_file(path): ''' Read in a config file from a given path and process it into a dictionary ''' log.debug('Reading configuration from %s', path) with salt.utils.files.fopen(path, 'r') as conf_file: try: conf_opts = salt.utils.yaml.safe_load(conf_file) or {} ex...
[ "Read", "in", "a", "config", "file", "from", "a", "given", "path", "and", "process", "it", "into", "a", "dictionary" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2151-L2178
[ "def", "_read_conf_file", "(", "path", ")", ":", "log", ".", "debug", "(", "'Reading configuration from %s'", ",", "path", ")", "with", "salt", ".", "utils", ".", "files", ".", "fopen", "(", "path", ",", "'r'", ")", "as", "conf_file", ":", "try", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
_absolute_path
Return an absolute path. In case ``relative_to`` is passed and ``path`` is not an absolute path, we try to prepend ``relative_to`` to ``path``and if that path exists, return that one
salt/config/__init__.py
def _absolute_path(path, relative_to=None): ''' Return an absolute path. In case ``relative_to`` is passed and ``path`` is not an absolute path, we try to prepend ``relative_to`` to ``path``and if that path exists, return that one ''' if path and os.path.isabs(path): return path if ...
def _absolute_path(path, relative_to=None): ''' Return an absolute path. In case ``relative_to`` is passed and ``path`` is not an absolute path, we try to prepend ``relative_to`` to ``path``and if that path exists, return that one ''' if path and os.path.isabs(path): return path if ...
[ "Return", "an", "absolute", "path", ".", "In", "case", "relative_to", "is", "passed", "and", "path", "is", "not", "an", "absolute", "path", "we", "try", "to", "prepend", "relative_to", "to", "path", "and", "if", "that", "path", "exists", "return", "that", ...
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2181-L2198
[ "def", "_absolute_path", "(", "path", ",", "relative_to", "=", "None", ")", ":", "if", "path", "and", "os", ".", "path", ".", "isabs", "(", "path", ")", ":", "return", "path", "if", "path", "and", "relative_to", "is", "not", "None", ":", "_abspath", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
load_config
Returns configuration dict from parsing either the file described by ``path`` or the environment variable described by ``env_var`` as YAML.
salt/config/__init__.py
def load_config(path, env_var, default_path=None, exit_on_config_errors=True): ''' Returns configuration dict from parsing either the file described by ``path`` or the environment variable described by ``env_var`` as YAML. ''' if path is None: # When the passed path is None, we just want the...
def load_config(path, env_var, default_path=None, exit_on_config_errors=True): ''' Returns configuration dict from parsing either the file described by ``path`` or the environment variable described by ``env_var`` as YAML. ''' if path is None: # When the passed path is None, we just want the...
[ "Returns", "configuration", "dict", "from", "parsing", "either", "the", "file", "described", "by", "path", "or", "the", "environment", "variable", "described", "by", "env_var", "as", "YAML", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2201-L2261
[ "def", "load_config", "(", "path", ",", "env_var", ",", "default_path", "=", "None", ",", "exit_on_config_errors", "=", "True", ")", ":", "if", "path", "is", "None", ":", "# When the passed path is None, we just want the configuration", "# defaults, not actually loading t...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
include_config
Parses extra configuration file(s) specified in an include list in the main config file.
salt/config/__init__.py
def include_config(include, orig_path, verbose, exit_on_config_errors=False): ''' Parses extra configuration file(s) specified in an include list in the main config file. ''' # Protect against empty option if not include: return {} if orig_path is None: # When the passed pat...
def include_config(include, orig_path, verbose, exit_on_config_errors=False): ''' Parses extra configuration file(s) specified in an include list in the main config file. ''' # Protect against empty option if not include: return {} if orig_path is None: # When the passed pat...
[ "Parses", "extra", "configuration", "file", "(", "s", ")", "specified", "in", "an", "include", "list", "in", "the", "main", "config", "file", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2264-L2318
[ "def", "include_config", "(", "include", ",", "orig_path", ",", "verbose", ",", "exit_on_config_errors", "=", "False", ")", ":", "# Protect against empty option", "if", "not", "include", ":", "return", "{", "}", "if", "orig_path", "is", "None", ":", "# When the ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
prepend_root_dir
Prepends the options that represent filesystem paths with value of the 'root_dir' option.
salt/config/__init__.py
def prepend_root_dir(opts, path_options): ''' Prepends the options that represent filesystem paths with value of the 'root_dir' option. ''' root_dir = os.path.abspath(opts['root_dir']) def_root_dir = salt.syspaths.ROOT_DIR.rstrip(os.sep) for path_option in path_options: if path_optio...
def prepend_root_dir(opts, path_options): ''' Prepends the options that represent filesystem paths with value of the 'root_dir' option. ''' root_dir = os.path.abspath(opts['root_dir']) def_root_dir = salt.syspaths.ROOT_DIR.rstrip(os.sep) for path_option in path_options: if path_optio...
[ "Prepends", "the", "options", "that", "represent", "filesystem", "paths", "with", "value", "of", "the", "root_dir", "option", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2321-L2367
[ "def", "prepend_root_dir", "(", "opts", ",", "path_options", ")", ":", "root_dir", "=", "os", ".", "path", ".", "abspath", "(", "opts", "[", "'root_dir'", "]", ")", "def_root_dir", "=", "salt", ".", "syspaths", ".", "ROOT_DIR", ".", "rstrip", "(", "os", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
insert_system_path
Inserts path into python path taking into consideration 'root_dir' option.
salt/config/__init__.py
def insert_system_path(opts, paths): ''' Inserts path into python path taking into consideration 'root_dir' option. ''' if isinstance(paths, six.string_types): paths = [paths] for path in paths: path_options = {'path': path, 'root_dir': opts['root_dir']} prepend_root_dir(path...
def insert_system_path(opts, paths): ''' Inserts path into python path taking into consideration 'root_dir' option. ''' if isinstance(paths, six.string_types): paths = [paths] for path in paths: path_options = {'path': path, 'root_dir': opts['root_dir']} prepend_root_dir(path...
[ "Inserts", "path", "into", "python", "path", "taking", "into", "consideration", "root_dir", "option", "." ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2370-L2381
[ "def", "insert_system_path", "(", "opts", ",", "paths", ")", ":", "if", "isinstance", "(", "paths", ",", "six", ".", "string_types", ")", ":", "paths", "=", "[", "paths", "]", "for", "path", "in", "paths", ":", "path_options", "=", "{", "'path'", ":", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
minion_config
Reads in the minion configuration file and sets up special options This is useful for Minion-side operations, such as the :py:class:`~salt.client.Caller` class, and manually running the loader interface. .. code-block:: python import salt.config minion_opts = salt.config.minion_config...
salt/config/__init__.py
def minion_config(path, env_var='SALT_MINION_CONFIG', defaults=None, cache_minion_id=False, ignore_config_errors=True, minion_id=None, role='minion'): ''' Reads in the minion configuration file and sets u...
def minion_config(path, env_var='SALT_MINION_CONFIG', defaults=None, cache_minion_id=False, ignore_config_errors=True, minion_id=None, role='minion'): ''' Reads in the minion configuration file and sets u...
[ "Reads", "in", "the", "minion", "configuration", "file", "and", "sets", "up", "special", "options" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2384-L2433
[ "def", "minion_config", "(", "path", ",", "env_var", "=", "'SALT_MINION_CONFIG'", ",", "defaults", "=", "None", ",", "cache_minion_id", "=", "False", ",", "ignore_config_errors", "=", "True", ",", "minion_id", "=", "None", ",", "role", "=", "'minion'", ")", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
apply_sdb
Recurse for sdb:// links for opts
salt/config/__init__.py
def apply_sdb(opts, sdb_opts=None): ''' Recurse for sdb:// links for opts ''' # Late load of SDB to keep CLI light import salt.utils.sdb if sdb_opts is None: sdb_opts = opts if isinstance(sdb_opts, six.string_types) and sdb_opts.startswith('sdb://'): return salt.utils.sdb.sdb...
def apply_sdb(opts, sdb_opts=None): ''' Recurse for sdb:// links for opts ''' # Late load of SDB to keep CLI light import salt.utils.sdb if sdb_opts is None: sdb_opts = opts if isinstance(sdb_opts, six.string_types) and sdb_opts.startswith('sdb://'): return salt.utils.sdb.sdb...
[ "Recurse", "for", "sdb", ":", "//", "links", "for", "opts" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2560-L2581
[ "def", "apply_sdb", "(", "opts", ",", "sdb_opts", "=", "None", ")", ":", "# Late load of SDB to keep CLI light", "import", "salt", ".", "utils", ".", "sdb", "if", "sdb_opts", "is", "None", ":", "sdb_opts", "=", "opts", "if", "isinstance", "(", "sdb_opts", ",...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
cloud_config
Read in the Salt Cloud config and return the dict
salt/config/__init__.py
def cloud_config(path=None, env_var='SALT_CLOUD_CONFIG', defaults=None, master_config_path=None, master_config=None, providers_config_path=None, providers_config=None, profiles_config_path=None, profiles_config=None): ''' Read in the Salt Cloud config and retur...
def cloud_config(path=None, env_var='SALT_CLOUD_CONFIG', defaults=None, master_config_path=None, master_config=None, providers_config_path=None, providers_config=None, profiles_config_path=None, profiles_config=None): ''' Read in the Salt Cloud config and retur...
[ "Read", "in", "the", "Salt", "Cloud", "config", "and", "return", "the", "dict" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2585-L2810
[ "def", "cloud_config", "(", "path", "=", "None", ",", "env_var", "=", "'SALT_CLOUD_CONFIG'", ",", "defaults", "=", "None", ",", "master_config_path", "=", "None", ",", "master_config", "=", "None", ",", "providers_config_path", "=", "None", ",", "providers_confi...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
apply_cloud_config
Return a cloud config
salt/config/__init__.py
def apply_cloud_config(overrides, defaults=None): ''' Return a cloud config ''' if defaults is None: defaults = DEFAULT_CLOUD_OPTS.copy() config = defaults.copy() if overrides: config.update(overrides) # If the user defined providers in salt cloud's main configuration file,...
def apply_cloud_config(overrides, defaults=None): ''' Return a cloud config ''' if defaults is None: defaults = DEFAULT_CLOUD_OPTS.copy() config = defaults.copy() if overrides: config.update(overrides) # If the user defined providers in salt cloud's main configuration file,...
[ "Return", "a", "cloud", "config" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2813-L2877
[ "def", "apply_cloud_config", "(", "overrides", ",", "defaults", "=", "None", ")", ":", "if", "defaults", "is", "None", ":", "defaults", "=", "DEFAULT_CLOUD_OPTS", ".", "copy", "(", ")", "config", "=", "defaults", ".", "copy", "(", ")", "if", "overrides", ...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
vm_profiles_config
Read in the salt cloud VM config file
salt/config/__init__.py
def vm_profiles_config(path, providers, env_var='SALT_CLOUDVM_CONFIG', defaults=None): ''' Read in the salt cloud VM config file ''' if defaults is None: defaults = VM_CONFIG_DEFAULTS overrides = salt.config.load_config( ...
def vm_profiles_config(path, providers, env_var='SALT_CLOUDVM_CONFIG', defaults=None): ''' Read in the salt cloud VM config file ''' if defaults is None: defaults = VM_CONFIG_DEFAULTS overrides = salt.config.load_config( ...
[ "Read", "in", "the", "salt", "cloud", "VM", "config", "file" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L2916-L2941
[ "def", "vm_profiles_config", "(", "path", ",", "providers", ",", "env_var", "=", "'SALT_CLOUDVM_CONFIG'", ",", "defaults", "=", "None", ")", ":", "if", "defaults", "is", "None", ":", "defaults", "=", "VM_CONFIG_DEFAULTS", "overrides", "=", "salt", ".", "config...
e8541fd6e744ab0df786c0f76102e41631f45d46
train
cloud_providers_config
Read in the salt cloud providers configuration file
salt/config/__init__.py
def cloud_providers_config(path, env_var='SALT_CLOUD_PROVIDERS_CONFIG', defaults=None): ''' Read in the salt cloud providers configuration file ''' if defaults is None: defaults = PROVIDER_CONFIG_DEFAULTS overrides = salt.config.load_con...
def cloud_providers_config(path, env_var='SALT_CLOUD_PROVIDERS_CONFIG', defaults=None): ''' Read in the salt cloud providers configuration file ''' if defaults is None: defaults = PROVIDER_CONFIG_DEFAULTS overrides = salt.config.load_con...
[ "Read", "in", "the", "salt", "cloud", "providers", "configuration", "file" ]
saltstack/salt
python
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/config/__init__.py#L3057-L3081
[ "def", "cloud_providers_config", "(", "path", ",", "env_var", "=", "'SALT_CLOUD_PROVIDERS_CONFIG'", ",", "defaults", "=", "None", ")", ":", "if", "defaults", "is", "None", ":", "defaults", "=", "PROVIDER_CONFIG_DEFAULTS", "overrides", "=", "salt", ".", "config", ...
e8541fd6e744ab0df786c0f76102e41631f45d46