You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by se...@apache.org on 2016/06/12 11:42:18 UTC

aurora-packaging git commit: Make copy & paste of example jobs easier.

Repository: aurora-packaging
Updated Branches:
  refs/heads/master b4f1a4529 -> aa5830237


Make copy & paste of example jobs easier.

Otherwise, the leading whitespace will lead to invalid Python code that
needs to be fixed manually within the Vagrant box.


Project: http://git-wip-us.apache.org/repos/asf/aurora-packaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora-packaging/commit/aa583023
Tree: http://git-wip-us.apache.org/repos/asf/aurora-packaging/tree/aa583023
Diff: http://git-wip-us.apache.org/repos/asf/aurora-packaging/diff/aa583023

Branch: refs/heads/master
Commit: aa58302370022fcbf9545ccb17a18fa45e11d3fc
Parents: b4f1a45
Author: Stephan Erb <se...@apache.org>
Authored: Sun Jun 12 13:40:21 2016 +0200
Committer: Stephan Erb <se...@apache.org>
Committed: Sun Jun 12 13:40:39 2016 +0200

----------------------------------------------------------------------
 test/deb/debian-jessie/README.md | 18 ++++++++++--------
 test/deb/ubuntu-trusty/README.md | 19 ++++++++++---------
 test/rpm/centos-7/README.md      | 18 ++++++++++--------
 3 files changed, 30 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/aa583023/test/deb/debian-jessie/README.md
----------------------------------------------------------------------
diff --git a/test/deb/debian-jessie/README.md b/test/deb/debian-jessie/README.md
index a695854..b84ffd9 100644
--- a/test/deb/debian-jessie/README.md
+++ b/test/deb/debian-jessie/README.md
@@ -44,14 +44,16 @@ has to be initialized manually:
 
 ## Create a job
 
-    echo "
-    task = SequentialTask(
-      processes = [Process(name = 'hello', cmdline = 'echo hello')],
-      resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
-    jobs = [Service(
-      task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]" > hello_world.aurora
-
-    aurora job create example/www-data/prod/hello hello_world.aurora
+```
+echo "
+task = SequentialTask(
+  processes = [Process(name = 'hello', cmdline = 'echo hello')],
+  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
+jobs = [Service(
+  task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]" > hello_world.aurora
+
+aurora job create example/www-data/prod/hello hello_world.aurora
+```
 
 ## Troubleshooting
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/aa583023/test/deb/ubuntu-trusty/README.md
----------------------------------------------------------------------
diff --git a/test/deb/ubuntu-trusty/README.md b/test/deb/ubuntu-trusty/README.md
index 124b8f1..bb79341 100644
--- a/test/deb/ubuntu-trusty/README.md
+++ b/test/deb/ubuntu-trusty/README.md
@@ -44,15 +44,16 @@ has to be initialized manually:
 
 ## Create a job
 
-    echo "
-    task = SequentialTask(
-      processes = [Process(name = 'hello', cmdline = 'echo hello')],
-      resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
-    jobs = [Service(
-      task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]" > hello_world.aurora
-
-    aurora job create example/www-data/prod/hello hello_world.aurora
-
+```
+echo "
+task = SequentialTask(
+  processes = [Process(name = 'hello', cmdline = 'echo hello')],
+  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
+jobs = [Service(
+  task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]" > hello_world.aurora
+
+aurora job create example/www-data/prod/hello hello_world.aurora
+```
 ## Troubleshooting
 
 * Mesos: `/var/log/mesos`

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/aa583023/test/rpm/centos-7/README.md
----------------------------------------------------------------------
diff --git a/test/rpm/centos-7/README.md b/test/rpm/centos-7/README.md
index 5fa398b..bb34fb6 100644
--- a/test/rpm/centos-7/README.md
+++ b/test/rpm/centos-7/README.md
@@ -42,14 +42,16 @@ for installing released packages or release candidate packages.
 
 ## Create a job
 
-    echo "
-    task = SequentialTask(
-      processes = [Process(name = 'hello', cmdline = 'echo hello')],
-      resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
-    jobs = [Service(
-      task = task, cluster = 'main', role = 'vagrant', environment = 'prod', name = 'hello')]" > hello_world.aurora
-
-    aurora job create main/vagrant/prod/hello hello_world.aurora
+```
+echo "
+task = SequentialTask(
+  processes = [Process(name = 'hello', cmdline = 'echo hello')],
+  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
+jobs = [Service(
+  task = task, cluster = 'main', role = 'vagrant', environment = 'prod', name = 'hello')]" > hello_world.aurora
+
+aurora job create main/vagrant/prod/hello hello_world.aurora
+```
 
 ## Troubleshooting