Exemple #1
0
 def setup(self):
     """
      Setup method that does the real work of loading the yaml,
      generating questions, parsing the output and writing to
      a yaml file.
     """
     utils.print_ok(self.message)
     doc = self.execute_params(self.params)
     return doc
Exemple #2
0
 def setup(self):
     """
      Setup method that does the real work of loading the yaml,
      generating questions, parsing the output and writing to
      a yaml file.
     """
     utils.print_ok(self.message)
     doc = self.execute_params(self.params)
     return doc
Exemple #3
0
 def setup(self):
     doc = {}
     utils.print_ok(self.message)
     _basic_params = self.execute_params(self.params)
     doc.update(_basic_params)
     if _basic_params['operatingsystem'] == 'ubuntu':
         _apt_params = self.execute_params(self.apt_params)
         doc.update(_apt_params)
     elif _basic_params['operatingsystem'] == 'redhat':
         #do redhat specific options if any
         pass
     return doc
Exemple #4
0
 def setup(self):
     doc = {}
     utils.print_ok(self.message)
     _basic_params = self.execute_params(self.params)
     doc.update(_basic_params)
     if _basic_params['operatingsystem'] == 'ubuntu':
         _apt_params = self.execute_params(self.apt_params)
         doc.update(_apt_params)
     elif _basic_params['operatingsystem'] == 'redhat':
         #do redhat specific options if any
         pass
     return doc