예제 #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)
         })