コード例 #1
0
 def enhance(self):
     """ Function enhance
     Enhance the object with new item or enhanced items
     """
     self.update({
         'os_default_templates':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemOsDefaultTemplate)
     })
     self.update({
         'config_templates':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemConfigTemplate)
     })
     self.update({
         'ptables':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemPTable)
     })
     self.update({
         'media':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemMedia)
     })
     self.update({
         'architectures':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemArchitecture)
     })
コード例 #2
0
 def enhance(self):
     """ Function enhance
     Enhance the object with new item or enhanced items
     """
     self.update({
         'os_default_templates':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemOsDefaultTemplate)
     })
     self.update({
         'operatingsystems':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemOperatingSystem)
     })
コード例 #3
0
 def enhance(self):
     """ Function enhance
     Enhance the object with new item or enhanced items
     """
     self.update({'parameters':
                  SubDict(self.api, self.objName,
                          self.payloadObj, self.key,
                          SubItemParameter)})
     self.update({'interfaces':
                  SubDict(self.api, self.objName,
                          self.payloadObj, self.key,
                          SubItemInterface)})
     self.update({'subnets':
                 SubDict(self.api, self.objName,
                         self.payloadObj, self.key,
                         SubItemSubnet)})
コード例 #4
0
 def enhance(self):
     """ Function enhance
     Enhance the object with new item or enhanced items
     """
     self.update({
         'override_values':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemOverrideValues)
     })
コード例 #5
0
 def enhance(self):
     """ Function enhance
     Enhance the object with new item or enhanced items
     """
     self.update({
         'puppetclasses':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemPuppetClasses)
     })
     self.update({
         'parameters':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 SubItemParameter)
     })
     self.update({
         'smart_class_parameters':
         SubDict(self.api, self.objName, self.payloadObj, self.key,
                 ItemSmartClassParameter)
     })
コード例 #6
0
ファイル: item.py プロジェクト: Bhomela/ThinkNobs
 def enhance(self):
     """ Function enhance
     Enhance the object with new item or enhanced items
     """
     if self.objName in ['hosts', 'hostgroups', 'puppet_classes']:
         from foreman.itemSmartClassParameter\
             import ItemSmartClassParameter
         self.update({
             'smart_class_parameters':
             SubDict(self.api, self.objName, self.payloadObj, self.key,
                     ItemSmartClassParameter)
         })