Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
540c23df
Commit
540c23df
authored
May 06, 2015
by
Stefan Midjich
Committed by
Brian Coca
May 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this fixes ansible on openbsd and freebsd systems. only tested on openbsd.
parent
6000db7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
lib/ansible/module_utils/facts.py
+37
-0
No files found.
lib/ansible/module_utils/facts.py
View file @
540c23df
...
...
@@ -2545,6 +2545,43 @@ class LinuxVirtual(Virtual):
self
.
facts
[
'virtualization_role'
]
=
'NA'
return
class
FreeBSDVirtual
(
Virtual
):
"""
This is a FreeBSD-specific subclass of Virtual. It defines
- virtualization_type
- virtualization_role
"""
platform
=
'FreeBSD'
def
__init__
(
self
):
Virtual
.
__init__
(
self
)
def
populate
(
self
):
self
.
get_virtual_facts
()
return
self
.
facts
def
get_virtual_facts
(
self
):
self
.
facts
[
'virtualization_type'
]
=
''
self
.
facts
[
'virtualization_role'
]
=
''
class
OpenBSDVirtual
(
Virtual
):
"""
This is a OpenBSD-specific subclass of Virtual. It defines
- virtualization_type
- virtualization_role
"""
platform
=
'OpenBSD'
def
__init__
(
self
):
Virtual
.
__init__
(
self
)
def
populate
(
self
):
self
.
get_virtual_facts
()
return
self
.
facts
def
get_virtual_facts
(
self
):
self
.
facts
[
'virtualization_type'
]
=
''
self
.
facts
[
'virtualization_role'
]
=
''
class
HPUXVirtual
(
Virtual
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment