269 Commits

Author SHA1 Message Date
Chris Roberts
fc61c27b51
Update logging names for clearer messages 2022-04-25 12:24:45 -05:00
Chris Roberts
99978cf9d6
Set statebag into host plugin 2022-04-25 12:24:45 -05:00
sophia
58ffe630a2
Pass statebag to host detect function 2022-04-25 12:24:41 -05:00
sophia
97baac8772
Check for parents if host detected 2022-04-25 12:24:41 -05:00
sophia
d75f76edf7
Prune old jobs as part of vagrant server clean ups 2022-04-25 12:24:40 -05:00
sophia
b2cce38f48
Add rpc endpoint to prune out old jobs 2022-04-25 12:24:40 -05:00
sophia
57474ac8c8
Periodically prune old jobs from bolt 2022-04-25 12:24:40 -05:00
sophia
2991810e0c
Seperate pruning jobs from memdb and bolt
only prune out old queued jobs in memdb
2022-04-25 12:24:40 -05:00
sophia
21c926523f
Count all the entries in jobs bucket 2022-04-25 12:24:40 -05:00
sophia
63dcc9fbf3
Save point: run prune in background 2022-04-25 12:24:40 -05:00
sophia
4205d0e444
Prune old jobs from state 2022-04-25 12:24:40 -05:00
sophia
772e786eee
Import Waypoint state pruning code
ref: b333b059a0/internal/server/singleprocess/state/prune.go
b333b059a0/internal/server/singleprocess/state/prune_test.go
4f71748610/internal/server/singleprocess/prune.go

Squash: import prune
2022-04-25 12:24:40 -05:00
sophia
f845222c44
Add statebag to basis 2022-04-25 12:24:40 -05:00
sophia
631a630e68
Implement statebag 2022-04-25 12:24:40 -05:00
sophia
f5fe88de15
Add tests for target 2022-04-25 12:24:39 -05:00
sophia
72225abc28
Add test for basis state 2022-04-25 12:24:39 -05:00
sophia
b30bbcb13a
Don't check for 'found' in basis/project/target query results 2022-04-25 12:24:39 -05:00
sophia
bb336592ea
Remove 'found' from basis/project/target query results 2022-04-25 12:24:39 -05:00
sophia
591dcced22
Remotve machine names function from project 2022-04-25 12:24:37 -05:00
sophia
5ca687cad4
Implement project home path, cwd and default private key 2022-04-25 12:24:36 -05:00
sophia
6b007f27bb
Detect guest for machine 2022-04-25 12:24:35 -05:00
Chris Roberts
c1bbc7284b
Generated proto updates 2022-04-25 12:24:35 -05:00
Chris Roberts
3505089a3c
Allow runner UI to disable new lines 2022-04-25 12:24:35 -05:00
Chris Roberts
fdfa6f221e
Add disable new line to message proto 2022-04-25 12:24:35 -05:00
sophia
ea87b6824d
Upgrade bolt to bbolt
boltdb/bolt is no longer a maintained project. bbolt is the CoreOS
fork that the author of boltdb suggests using as a replacement.
2022-04-25 12:24:34 -05:00
Chris Roberts
90903417c4
Use plugin submanager within new basis instances 2022-04-25 12:24:34 -05:00
Chris Roberts
0f4c6f5921
Allow plugin manager to have sub managers 2022-04-25 12:24:34 -05:00
sophia
058d929046
Setup data.db in global vagrant data path 2022-04-25 12:24:33 -05:00
sophia
1f6407705d
Includ tags test data for git funcs test 2022-04-25 12:24:33 -05:00
sophia
d7f01d32fd
Update Errorf formatting 2022-04-25 12:24:33 -05:00
Chris Roberts
f1a262c01f
Return stubbed value for provider name 2022-04-25 12:24:33 -05:00
Chris Roberts
71d5195fb3
Get provider name from target client 2022-04-25 12:24:33 -05:00
Chris Roberts
9a9c04409c
Check error for not found and return false result 2022-04-25 12:24:33 -05:00
Chris Roberts
df2488e508
Set uuid value on target if unset 2022-04-25 12:24:32 -05:00
Chris Roberts
3f6aef88a2
Fix target loading from target index 2022-04-25 12:24:32 -05:00
Chris Roberts
8b8f5adf67
Defer the unlock when loading target 2022-04-25 12:24:31 -05:00
Chris Roberts
aaf0ae8504
Generated proto updates 2022-04-25 12:24:31 -05:00
Chris Roberts
097c4547db
Support target lookups via uuid 2022-04-25 12:24:31 -05:00
Chris Roberts
4dc26db12c
Update index to be free of scope and include factory 2022-04-25 12:24:31 -05:00
Chris Roberts
96ac78a9a4
Fix some panics 2022-04-25 12:24:31 -05:00
Chris Roberts
003b06502c
Set provider within target 2022-04-25 12:24:31 -05:00
Chris Roberts
c4011c7fde
Attach factory to basis. Let basis provide target index 2022-04-25 12:24:31 -05:00
Chris Roberts
c562132e11
Update save behavior of project and get target index from basis 2022-04-25 12:24:31 -05:00
Chris Roberts
87ecd2b017
Add destroy function for target, update save behavior 2022-04-25 12:24:31 -05:00
Chris Roberts
32710b5d79
Create basis from factory and update runner to use factory 2022-04-25 12:24:30 -05:00
Chris Roberts
276af825b5
Use Save() for storing target 2022-04-25 12:24:30 -05:00
Chris Roberts
4f698c9ab2
Set resource ID into target proto for search 2022-04-25 12:24:30 -05:00
Chris Roberts
99e01aa9f9
Set target data after save 2022-04-25 12:24:29 -05:00
Chris Roberts
9319409d45
Load all targets defined within project 2022-04-25 12:24:29 -05:00
Chris Roberts
b9478e7eee
Load target when not already loaded 2022-04-25 12:24:29 -05:00