View this code at http://livecoding.io/9964247
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Person } from "./PersonStore"; | |
const Message = t.model("MessageModel", { | |
id: t.identifier, | |
author: t.late(() => t.reference(Person)), | |
body: t.string, | |
title: t.string, | |
toPeople: t.array(t.late(() => t.reference(Person))), | |
read: false | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set target = pillar.get('target', '') %} | |
{% for svc_name in pillar.get('services') %} | |
install service {{ svc_name }}: | |
salt.function: | |
- name: state.sls | |
- tgt: {{ target }} | |
- tgt_type: grain | |
- arg: | |
- config.supervised |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ensure myapp-myinstance launch_config exists: | |
boto_lc.present: | |
- name: myapp-myinstance-lc | |
- image_id: ami-d05e75b8 | |
- key_name: trendkite-master-052914 | |
- security_groups: | |
- myapp | |
- instance_type: m3.large | |
- instance_monitoring: false | |
- profile: myprofile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myrole: | |
boto_iam_role.present: | |
- region: us-east-1 | |
- key: GKTADJGHEIQSXMKKRBJ08H | |
- keyid: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs | |
- policies_from_pillars: | |
- shared_iam_bootstrap_policy | |
- policies: | |
MySQSPolicy: | |
Statement: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[WARNING ] Stopping the Salt Minion | |
[WARNING ] Exiting on Ctrl-c | |
[INFO ] The salt minion is shut down | |
[root@ip-10-0-10-5 venv]# vim etc/salt/minion | |
[root@ip-10-0-10-5 venv]# salt-minion -c ./etc/salt -l debug | |
[DEBUG ] Reading configuration from /vol2/jenkins/jobs/salt-build/venv/etc/salt/minion | |
[DEBUG ] Configuration file path: /vol2/jenkins/jobs/salt-build/venv/etc/salt/minion | |
[INFO ] Setting up the Salt Minion "salt-jenkins" | |
[DEBUG ] Created pidfile: /vol2/jenkins/jobs/salt-build/venv/var/run/salt-minion.pid | |
[DEBUG ] Reading configuration from /vol2/jenkins/jobs/salt-build/venv/etc/salt/minion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/srv: | |
salt: | |
top.sls | |
tomcat.sls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# directory structure: | |
/srv/salt: | |
top.sls | |
tomcat.sls | |
View this code at http://livecoding.io/9962490
NewerOlder