Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sporestack Salt States
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ezri
Sporestack Salt States
Commits
52c2b3c6
Verified
Commit
52c2b3c6
authored
5 years ago
by
Ezri
Browse files
Options
Downloads
Patches
Plain Diff
update code-server systemd file
Signed-off-by:
Eric Zhu
<
eric@korzq.xyz
>
parent
a14f212a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
states/code/code.sls
+11
-3
11 additions, 3 deletions
states/code/code.sls
states/code/files/code-server.service
+12
-0
12 additions, 0 deletions
states/code/files/code-server.service
with
23 additions
and
3 deletions
states/code/code.sls
+
11
−
3
View file @
52c2b3c6
get the zip:
file.managed:
- name: /root/
code/
server.
zip
- name: /root/server.
tar.gz
- source:
- 'https://github.com/cdr/code-server/releases/download/1.1156-vsc1.33.1/code-server1.1156-vsc1.33.1-linux-x64.tar.gz'
- source_hash: 74157bc1f55f5d9d20214ad0003662885cab40bb824bff30fd74604208a0fb02bb7c875220d9320a3ec0cf7e9f12c99198f3088e61ddd7e45527ecfb64f697fb
- makedirs: True
- source_hash: 4ee768c461e5c58f2ec1eeaafb8174164eb4f1ac617e1a342ccf51c36a073c13
codeserver_extracted:
archive.extracted:
- name: /root
- source: /root/server.tar.gz
start_codeserver:
cmd.run:
- name: nohup ./code-server1.1156-vsc1.33.1-linux-x64/code-server
- bg: True
This diff is collapsed.
Click to expand it.
states/code/files/code-server.service
0 → 100644
+
12
−
0
View file @
52c2b3c6
[Unit]
Description
=
code-server
After
=
syslog.target network.target
[Service]
User
=
0
Group
=
0
WorkingDirectory
=
/root
ExecStart
=
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment