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
baa91ebc
Commit
baa91ebc
authored
Oct 11, 2012
by
Tim Bielawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add DIST_MODULE_PATH so setup.py and ansible.spec can live in harmony. Closes #1277
parent
f3d72946
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
lib/ansible/constants.py
+5
-1
setup.py
+2
-2
No files found.
lib/ansible/constants.py
View file @
baa91ebc
...
...
@@ -60,12 +60,16 @@ p = load_config_file()
active_user
=
pwd
.
getpwuid
(
os
.
geteuid
())[
0
]
# Needed so the RPM can call setup.py and have modules land in the
# correct location. See #1277 for discussion
DIST_MODULE_PATH
=
'/usr/share/ansible/'
# sections in config file
DEFAULTS
=
'defaults'
# configurable things
DEFAULT_HOST_LIST
=
shell_expand_path
(
get_config
(
p
,
DEFAULTS
,
'hostfile'
,
'ANSIBLE_HOSTS'
,
'/etc/ansible/hosts'
))
DEFAULT_MODULE_PATH
=
shell_expand_path
(
get_config
(
p
,
DEFAULTS
,
'library'
,
'ANSIBLE_LIBRARY'
,
'/usr/share/ansible'
))
DEFAULT_MODULE_PATH
=
shell_expand_path
(
get_config
(
p
,
DEFAULTS
,
'library'
,
'ANSIBLE_LIBRARY'
,
DIST_MODULE_PATH
))
DEFAULT_REMOTE_TMP
=
shell_expand_path
(
get_config
(
p
,
DEFAULTS
,
'remote_tmp'
,
'ANSIBLE_REMOTE_TEMP'
,
'$HOME/.ansible/tmp'
))
DEFAULT_MODULE_NAME
=
get_config
(
p
,
DEFAULTS
,
'module_name'
,
None
,
'command'
)
DEFAULT_PATTERN
=
get_config
(
p
,
DEFAULTS
,
'pattern'
,
None
,
'*'
)
...
...
setup.py
View file @
baa91ebc
...
...
@@ -9,8 +9,8 @@ from ansible import __version__, __author__
from
distutils.core
import
setup
# find library modules
from
ansible.constants
import
D
EFAUL
T_MODULE_PATH
data_files
=
[
(
D
EFAUL
T_MODULE_PATH
,
glob
(
'./library/*'
))
]
from
ansible.constants
import
D
IS
T_MODULE_PATH
data_files
=
[
(
D
IS
T_MODULE_PATH
,
glob
(
'./library/*'
))
]
print
"DATA FILES=
%
s"
%
data_files
...
...
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