#NEWLINE# def get_os_by_profile( self , profile ) : #NEWLINE# #INDENT# LOG . debug ( '--- Getting operating system data by profile ---' ) #NEWLINE# if ( 'centos' in profile ) : #NEWLINE# #INDENT# os = objects . Centos ( repos = None , packages = None , major = 6 , minor = 5 ) #NEWLINE# if ( '7' in profile ) : #NEWLINE# #INDENT# LOG . debug ( 'Looks like CentOS7.0 is going to be provisioned.' ) #NEWLINE# os = objects . Centos ( repos = None , packages = None , major = 7 , minor = 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LOG . debug ( 'Looks like CentOS6.5 is going to be provisioned.' ) #NEWLINE# #UNINDENT# return os #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'ubuntu' in profile ) : #NEWLINE# #INDENT# os = objects . Ubuntu ( repos = None , packages = None , major = 12 , minor = 4 ) #NEWLINE# if ( '1404' in profile ) : #NEWLINE# #INDENT# LOG . debug ( 'Looks like Ubuntu1404 is going to be provisioned.' ) #NEWLINE# os = objects . Ubuntu ( repos = None , packages = None , major = 14 , minor = 4 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# LOG . debug ( 'Looks like Ubuntu1204 is going to be provisioned.' ) #NEWLINE# #UNINDENT# return self #NEWLINE# #UNINDENT# #UNINDENT# os = objects . OperatingSystem ( repos = None , packages = None ) #NEWLINE# return os