Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
minicoin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Volker Hilsheimer
minicoin
Commits
d14a5e8e
Commit
d14a5e8e
authored
Oct 15, 2020
by
Volker Hilsheimer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-populate role data with original values
parent
e588223e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
minicoin/Vagrantfile
minicoin/Vagrantfile
+1
-0
minicoin/lib/roles.rb
minicoin/lib/roles.rb
+3
-1
No files found.
minicoin/Vagrantfile
View file @
d14a5e8e
...
...
@@ -268,6 +268,7 @@ Vagrant.configure("2") do |config|
# add_role modifies, so make a deep copy of default_roles
roles
=
Marshal
.
load
(
Marshal
.
dump
(
default_roles
))
roles
.
concat
(
machine_roles
)
machine
[
"roles"
]
=
roles
roles
.
each
do
|
role
|
begin
add_role
(
box
,
role
,
name
)
unless
role
.
nil?
...
...
minicoin/lib/roles.rb
View file @
d14a5e8e
...
...
@@ -201,6 +201,8 @@ def add_role(box, role, name)
end
activity
=
false
role_params
[
"role"
]
=
role
role_params
[
"role_path"
]
=
role_path
# check for pre--provisioning script to run locally
if
File
.
file?
(
"
#{
role_path
}
/pre-provision.sh"
)
pre_provision
=
lambda
do
|
machine
|
...
...
@@ -278,7 +280,7 @@ def add_role(box, role, name)
script_ext
=
".ps1"
arg_marker
=
"-"
combine_array
=
true
script_args
=
[
"-
role"
,
role
,
"-
user"
,
$USER
]
script_args
=
[
"-user"
,
$USER
]
end
upload_path
=
"c:
\\
Windows
\\
temp
\\
"
end
...
...
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