Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
19840f1d
authored
Feb 19, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: add rabbitmq on devenv
parent
2ea6aaa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
miscellaneous/devenv/nextinit.sh
+8
-0
one/models.py
+4
-1
No files found.
miscellaneous/devenv/nextinit.sh
View file @
19840f1d
...
...
@@ -57,3 +57,11 @@ git config --global color.ui true
git config
--global
core.editor vim
true
sudo
apt-get install rabbitmq-server
sudo
rabbitmqctl delete_user guest
sudo
rabbitmqctl add_user nyuszi teszt
sudo
rabbitmqctl add_vhost django
sudo
rabbitmqctl set_permissions
-p
django nyuszi
'.*'
'.*'
'.*'
one/models.py
View file @
19840f1d
...
...
@@ -344,7 +344,7 @@ class Template(models.Model):
else
:
return
"linux"
@transaction.
commit_on_success
@transaction.
autocommit
def
safe_delete
(
self
):
if
not
self
.
instance_set
.
exclude
(
state
=
'DONE'
)
.
exists
():
self
.
delete
()
...
...
@@ -549,6 +549,9 @@ class Instance(models.Model):
for
i
in
Host
.
objects
.
filter
(
ipv4
=
host
.
ipv4
)
.
all
():
logger
.
warning
(
'Delete orphan fw host (
%
s) of
%
s.'
%
(
i
,
inst
))
i
.
delete
()
for
i
in
Host
.
objects
.
filter
(
mac
=
host
.
mac
)
.
all
():
logger
.
warning
(
'Delete orphan fw host (
%
s) of
%
s.'
%
(
i
,
inst
))
i
.
delete
()
host
.
save
()
host
.
enable_net
()
host
.
add_port
(
"tcp"
,
inst
.
get_port
(),
{
"rdp"
:
3389
,
"nx"
:
22
,
...
...
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